[turba] Problem with Active Directory

Mimmus dviggiani at tiscali.it
Fri Nov 28 07:06:59 PST 2003


Hi,
I'm trying to configure Turba to lookup in Active Directory address book.
My users are not all in "cn=Users,dc=domain,dc=it" DN but are organized in
Organizational Units (OU):

dc=domain,dc=it
    ou=Sectors
        ou=Sector1
            ou=Sector1.1
                ou=Users
                ou=Computers
            ou=Sector1.2
                ou=Users
                ou=Computers
...
        ou=Sector2
            ou=Sector2.1
                ou=Users
                ou=Computers
...

I used:
$cfgSources['pitagora'] = array(
    'title' => 'Pitagora',
    'type' => 'ldap',
    'params' => array(
        'server' => 'pdc.domain.it',
        'encoding' => 'utf8',
        'port' => 389,
        'bind_dn' => 'imp',
        'bind_password' => 'pwd',
        'root' => 'ou=Sectors,dc=domain,dc=it',
        'filter' => '&(mail=*domain.it)'
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'email' => 'mail',
        'alias' => 'givenname'
    ),
    'search' => array(
        'name',
        'email',
        'alias'
    ),
    'public' => true,
    'readonly' => true,
    'export' => false
);

but serches doesn't return always anything.

I wrote a simple snippet of Perl code to test LDAP setup (auth, dn,
basename, filters, etc) and it works.

Any idea/suggestion?

Thanks in advance
Domenico Viggiani



More information about the turba mailing list