<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 19/11/2012 14:20, tw2006 wrote:<br>
</div>
<blockquote
cite="mid:CAGHdwhS_WPa7=w0dNpdMm-rUcmfPnAz1ZqU01bfCGRd4+y+_aA@mail.gmail.com"
type="cite">Hi all,<br>
i'm trying to configure ldap auth with lotus domino ldap server.<br>
my ldap support anonymous from lan so it's very easy to use it and
the parameters that i use is:<br>
<br>
//<br>
// Settings for the LDAP authenticator.<br>
//<br>
'authenticator' => 'LDAP',<br>
'authLDAPBaseDN' => 'o=company,c=it',<br>
'authLDAPServers' => array('<a moz-do-not-send="true"
href="http://ldap.company.com">ldap.company.com</a>'),<br>
'authLDAPAccountSuffix' => '',<br>
'authLDAPUseSSL' => false,<br>
'authLDAPBindDn' => '',<br>
'authLDAPBindPass' => '',<br>
// This is the list of LDAP properties used to build the user's
full name<br>
'authLDAPFullName' => 'givenName cn',<br>
'authLDAPOrganization' => '',<br>
// If both these 2 settings are set, then the users must be
members of this<br>
// group/role.<br>
'authLDAPMemberKey' => '',<br>
'authLDAPMemberRole' => '',<br>
'authLDAPAdmins' => '',<br>
<br>
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<br>
</blockquote>
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=".<br>
<br>
That should do it.<br>
<blockquote
cite="mid:CAGHdwhS_WPa7=w0dNpdMm-rUcmfPnAz1ZqU01bfCGRd4+y+_aA@mail.gmail.com"
type="cite">
<br>
Another question is about authLDAPAdmins, how i can set it? <br>
</blockquote>
You can just set 'authAdmins' instead, that will be used if
authLDAPAdmins is not set.<br>
<br>
<blockquote
cite="mid:CAGHdwhS_WPa7=w0dNpdMm-rUcmfPnAz1ZqU01bfCGRd4+y+_aA@mail.gmail.com"
type="cite"><br>
For example my user is: <br>
cn=Name Surmane<br>
o=company<br>
c=it<br>
uid=NSurname<br>
<br>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
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
</pre>
</blockquote>
</body>
</html>