[turba] Missing fields when using Active Directory as a source
Ken Weaverling
weave at dtcc.edu
Sun Jan 1 13:56:30 PST 2006
It always seems to work out this way, but after staring at this for
hours today and trying what I thought was everything, I got it solved
minutes after I posted this. :(
The port should be the standard ldap port of 389, not 3268. Once I
changed that and with the original config below, all fields I want are
returned.
Sorry for the noise, but hope it helps someone else in my shoes down
the line... Also, thanks to Giannis for his posts in the past.
Quoting Ken Weaverling <weave at dtcc.edu>:
> # Below code to get id/pass lifted from post to turba list by Stoilis
> # Giannis on 3/19/03
> $string=Auth::getAuth();
> $separat="@";
> $string=substr($string,0,strlen($string)-strlen(strstr($string,$separat)));
> $uid='EXAMPLE\\'.$string;
>
> $cfgSources['adstaff'] = array(
> 'title' => 'Employees',
> 'type' => 'ldap',
> 'params' => array(
> 'server' => 'dc-01.example.com',
> 'encoding' => 'utf8',
> 'port' => 3268,
> 'root' => 'ou=Employees,ou=Domain Users,dc=example,dc=com',
> 'bind_dn' => $uid,
> 'bind_password' => Auth::getCredential('password'),
> 'objectclass' => array('top','person','user',
> 'inetOrgPerson','organizationalperson'),
> 'filter' => '',
> 'version' => 3
> ),
> 'map' => array(
> '__key' => 'dn',
> 'name' => 'cn',
> 'email' => 'mail',
> 'firstname' => 'givenname',
> 'lastname' => 'sn',
> 'title' => 'title',
> 'alias' => 'displayname',
> 'department' => 'department',
> 'office' => 'physicalDeliveryOfficeName',
> 'workPhone' => 'telephonenumber',
> 'company' => 'company'
> ),
> 'search' => array(
> 'lastname',
> 'email'
> ),
> 'public' => true,
> 'readonly' => true,
> 'export' => true
> );
More information about the turba
mailing list