[turba] edit LDAP entry
Craig White
craigwhite at azapple.com
Tue Oct 18 12:32:45 PDT 2005
On Tue, 2005-10-18 at 14:59 -0400, Adam Tauno Williams wrote:
> > Craig, Here's what I have at sources.php:
> > $cfgSources['localldap'] = array(
> > 'title' => _("Employee Directory"),
> > 'type' => 'ldap',
> > 'params' => array(
> > 'server' => 'localhost',
> > 'port' => 389,
> > 'root' => 'ou=employees,ou=users,dc=my,dc=company,dc=fake',
> > 'bind_dn' => 'ou=users,dc=my,dc=company,dc=fake',
> > 'bind_password' => 'secret',
>
> This looks wrong. You are binding as an organizationalUnit?
----
which probably doesn't bode well for security on his setup either.
Anyway, fwiw, I use this in my setup...
snippage...
$basedn = 'dc=mydomain,dc=net';
$cfgSources['base_ldap'] = array(
'title' => _("Employee Directory"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => true,
'root' => 'ou=People,ou=Accounts,dc=mydomain,dc=net',
'bind_dn' => 'uid=' . $uid . ',ou=People,ou=Accounts,' .\
$basedn,
'bind_password' => Auth::getCredential('password'),
snippage...
Craig
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the turba
mailing list