[ZendTo] Re: ldap authentication issue

tw2006 tw2006 at gmail.com
Mon Nov 19 16:56:55 GMT 2012


i comment authLDAPAdmins and add on authAdmins my uid without others value
'authAdmins'           => array('NSurname'),

but it don't recognize my user as an admin


On Mon, Nov 19, 2012 at 5:48 PM, tw2006 <tw2006 at gmail.com> wrote:

> i tried with no luck, i think i need to change usernameRegexp parameter in
> order to add space as valid character but i don't know how
>
>
> On Mon, Nov 19, 2012 at 5:27 PM, Jules <Jules at zend.to> wrote:
>
>>
>> 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'),
>>   '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 CEngwww.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
>>
>>
>> _______________________________________________
>> ZendTo mailing list
>> ZendTo at zend.to
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20121119/91173857/attachment-0001.html 


More information about the ZendTo mailing list