[ZendTo] Re: ldap authentication issue

Jules Jules at Zend.To
Mon Nov 19 16:27:25 GMT 2012


On 19/11/2012 14:20, tw2006 wrote:
> Hi all,
>  i'm trying to configure ldap auth with lotus domino ldap server.
> my ldap support anonymous from lan so it's very easy to use it and the 
> parameters that i use is:
>
>   //
>   // Settings for the LDAP authenticator.
>   //
>   'authenticator'         => 'LDAP',
>   'authLDAPBaseDN'        => 'o=company,c=it',
>   'authLDAPServers'       => array('ldap.company.com 
> <http://ldap.company.com>'),
>   'authLDAPAccountSuffix' => '',
>   'authLDAPUseSSL'        => false,
>   'authLDAPBindDn'        => '',
>   'authLDAPBindPass'      => '',
>   // This is the list of LDAP properties used to build the user's full 
> name
>   'authLDAPFullName'      => 'givenName cn',
>   'authLDAPOrganization'  => '',
>   // If both these 2 settings are set, then the users must be members 
> of this
>   // group/role.
>   'authLDAPMemberKey'     => '',
>   'authLDAPMemberRole'    => '',
>   'authLDAPAdmins'          => '',
>
> I'm able to login but i must use the uid value as username. The 
> problem is that my user use Name and Surname as username  that is in 
> cn value
The code currently assumes you will use uid as the username. To change 
this, edit NSSLDAPAuthenticator.php (in /opt/zendto/lib) and edit lines 
162 and 264 so that instead of saying "uid=" it says "cn=".

That should do it.
>
> Another question is about authLDAPAdmins, how i can set it?
You can just set 'authAdmins' instead, that will be used if 
authLDAPAdmins is not set.

>
> For example my user is:
> cn=Name Surmane
> o=company
> c=it
> uid=NSurname
>
>
> Jules
>
> -- 
> Julian Field MEng MBCS CITP CEng
> www.Zend.To
>
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> 'It's okay to live without all the answers' - Charlie Eppes, 2011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20121119/d07257b1/attachment.html 


More information about the ZendTo mailing list