[ZendTo] Re: ldap authentication issue

tw2006 tw2006 at gmail.com
Mon Nov 19 17:40:12 GMT 2012


working perfect now

now i need to understand how to set authAdmins infact don't give me admin
access with NSurname or with Name Surname values


On Mon, Nov 19, 2012 at 6:04 PM, Jules <Jules at zend.to> wrote:

>  'usernameRegexp'    => '/^([a-zA-Z0-9\ \_\.\-\@\\\]+)$/i',
> should work well enough.
>
>
> On 19/11/2012 16:48, tw2006 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
>>
>
>
>
> _______________________________________________
> ZendTo mailing listZendTo at zend.tohttp://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
>
> Jules
>
> --
> Julian Field MEng MBCS CITP CEngwww.Zend.To
>
>
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> Trafalgar: Southwesterly 5 to 7 in northwest, otherwise northwesterly 5
> becoming variable 4. Moderate or rough. Rain or showers. Moderate or good,
> occasionally poor.
>
>
> _______________________________________________
> 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/e2ea543b/attachment.html 


More information about the ZendTo mailing list