[Xerte] Re: Names go missing from user profiles (Xerte 1.8)

Pat L (pgogy) xerte at pgogywebstuff.com
Thu Mar 6 14:46:08 GMT 2014


Somewhere around line 160 of ldap.php is

$this->_record = array('firstname' => $entry[0]['givenname'][0], 'surname'
=> $entry[0]['sn'][0], 'username' => $xot_username);

before that line try adding

echo "<pre>";
print_r($entry);
die();

try logging in, or getting a user whose name has vanished to login (on the
dev box) and see what entry is bringing back


On Thu, Mar 6, 2014 at 2:18 PM, Linda Pan <L.Pan at bbk.ac.uk> wrote:

> Hi Pat,
>
> It is a live installation, but I have a duplicate system on a development
> server where I could make code changes.
>
>
>
> I will try and run some test to see if I can pin down this behaviour to
> specific  actions.
>
>
>
> One thought - does it matter that our Admin user does not exist in the
> ActiveDirectory?
>
>
>
> Thanks,
>
>
>
> Linda
>
>
>
>
>
> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat L (pgogy)
> *Sent:* 06 March 2014 13:39
>
> *To:* Xerte discussion list
> *Subject:* [Xerte] Re: Names go missing from user profiles (Xerte 1.8)
>
>
>
> Hi Linda,
>
> Is the birkbeck install live? Or can you make a change to the code (via
> editting over FTP?)
>
> Thanks
>
> Pat
>
>
>
> On Thu, Mar 6, 2014 at 1:06 PM, Linda Pan <L.Pan at bbk.ac.uk> wrote:
>
> Hi,
>
> Just to add we are not using Kerberos/customised code.
>
>
>
> The authetication setting in config.php is LDAP:
>
>    $xerte_toolkits_site->authentication_method = 'Ldap';
>
>
>
> And the server we connect to is ActiveDirectory.
>
>
>
> In the database, the  sitedetails.integration_config_path value is empty.
>
> ldap.ldap_filter is 'cn='
>
> ldap.ldap_filter_attr  Is 'sAMAccountName'
>
>
>
>
>
> We are running version 1.8 rather 2.0 because we couldn't make version 2.0
> work with our existing templates.
>
>
>
> Thanks,
>
>
>
> Linda
>
>
>
> Linda Pan
> Web Team, IT Services,
> Birkbeck, University of London,
> Egmont House, Tavistock Place,
> WC1H 9SF
>
> 020 7380 3188
> l.pan at bbk.ac.uk
>
>
>
> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat L (pgogy)
> *Sent:* 05 March 2014 18:31
> *To:* Xerte discussion list
> *Subject:* [Xerte] Re: Names go missing from user profiles (Xerte 1.8)
>
>
>
> Hi Linda,
>
>
>
> The names are usually populated via logging in. From recollection Birkbeck
> aren't using LDAP but some kerberos code they wrote themselves?
>
>
>
> If this data isn't returned via the query, then when log in occurs I think
> it may wipe out the details entered. Could possibly be a simple fix code
> wise but could also be something up with the authentication code.
>
>
>
> Hope this helps
>
>
>
> Pat
>
>
>
> On Wed, Mar 5, 2014 at 6:22 PM, Linda Pan <L.Pan at bbk.ac.uk> wrote:
>
> Hi all,
> We have an issue here at Birkbeck with Xerte 1.8.
>
> When logged in as Admin, and checking the 'Users' list, there are a
> number of entries where the names have disappeared, leaving only the
> 'View' link. Under User, most accounts have the name and then a link
> "View", which displays the ID number, first name , surname  and
> username. But on our installation some accounts have the fields for
> First name and Surname empty and consequently it is difficult to find
> users or the templates that belong to users. We've tried re-adding the
> names several times, but they go missing again.
>
> Did anybody experience anything similar and know how to fix this?
> Any help or hints in the right direction would be very much appreciated.
>
> Kind regards
>
> Linda Pan
>
>
>
> Web Team, IT Services,
> Birkbeck, University of London,
> Egmont House, Tavistock Place,
> WC1H 9SF
> l.pan at bbk.ac.uk
>
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer
> system, you are advised to perform your own checks. Email communications
> with the University of Nottingham may be monitored as permitted by UK
> legislation.
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20140306/5f87f43c/attachment-0001.html>


More information about the Xerte mailing list