[turba] Issues with LDAP and Personal Address Book.

Jean-Yves Avenard jyavenard at gmail.com
Thu Jan 18 18:25:08 PST 2007


Hi

On 1/19/07, Adam Tauno Williams <adam at morrison-ind.com> wrote:
> Which clearly means your Auth::getAuth() is returning "avenardj" since

Yes, I saw that :)

>
> Did you look at the value of the dn key in your setup?  It specifies
> what attributes compose the RDN.

Where is this defined? is it in the sources.php file?
I haven't changed anything else except the following for the LDAP
private address book:
//$uid = Auth::getBareAuth();
$basedn = 'ou=OxObjects,dc=hydrix,dc=com';

$cfgSources['personal_ldap'] = array(
    'title' => _("My Address Book"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'server2',
        'tls' => false,
        'basedn' => 'ou=OxObjects,dc=hydrix,dc=com',
        'uid' => 'uid',
        'root' => 'ou=' . Auth::getAuth() .
',ou=personal_addressbook,' . $basedn,
        'bind_dn' => 'uid=' . Auth::getAuth() . ',ou=Users,' . $basedn,
        'bind_password' => Auth::getCredential('password'),
        'dn' => array('cn', 'uid'),
        'objectclass' => array('top',


Ahhhhh, just changed the
        'dn' => array('cn', 'uid')
into
        'dn' => array('cn')

And it now works !!!!!
Your my saviour :)
Why would they put this in their example if that makes it not work by
default !!??

> I suspect it is in your attribute list;  look at the attributes
> assigned to names starting with an underscore "_"

I printed the content of $attributes earlier on and it is:
First  ;   ; Last  ;   ;   ;   ;   ;   ;   ;   ;   ;   ;   ;   ;   ;
;   ;   ;   ;   ;   ; 20070119032719.7buzmw3l9kco at 192.168.0.33  ;
cn=First,uid=20070119032719.7buzmw3l9kco at 192.168.0.33,ou=avenardj,ou=personal_addressbook,ou=OxObjects,dc=hydrix,dc=com
 ;

I see by default that I have the following field to enter I have:
Name:
Email:
Last Name:

Which is rather confusing. As I suspect you would use the first name
in the Name area. But in that case it will greatly limit who you can
add as there's a lot of Mark and John out there !
What are you using in your settings?

Thanks
Jean-Yves


More information about the turba mailing list