Page 1 of 1

Getting Contacts over LDAP

Posted: Wed Nov 09, 2005 12:00 pm
by EazyAdm
Hi there,

we are running a Testsystem of Scalix 9.4.0.9 and i'm trying to geht the Contacs from Scalix to a PHP Webfrontend.

But I have the first Problem befor trying a connection with PHP.

I used my LDAP Browser to connect the LDAP Server. If i'm trying to connect the server with my username and password, i get the following error message: [ERROR 49] Invalid credentials

if i try it withous a username and passwort, i can browse all the users and groups on the system but not the MyContacts.

Whats going wrong?

I was not able to find a solution in the other ldap threads in the forum.

Thanks

bye
eazy

Posted: Wed Nov 09, 2005 6:38 pm
by florian
the following ldapsearch command should work and it would contain all the elements you need for your config:

Code: Select all

ldapsearch -h scalixhostname -p 389 -D "cn=Matt Cain, o=Scalix" -w password -x -b o=MyContacts '(surname=whoever)'


one typiical problem is the use of the CN in the bind-dn (-D parameter). if your cn format is last, first, the name will contain a ",", so it needs to be quoted in a funny way. in that case it would read

Code: Select all

-D 'cn="Last, First", o=Scalix'


hope this helps,
Florian[/code]

Posted: Thu Nov 10, 2005 3:14 am
by EazyAdm
OK, thanks, this works.

But in the Table MyContacts, there i can only find the contacts of me or the loggedin user.

Is there a way to geht the Contatcs of the Public Folder?

Thanks

bye
eazy

Posted: Thu Nov 10, 2005 4:38 am
by florian
At this point, no. The MyContacts LDAP source only provides access to the primary Personal Contacts folder of the Authenticated user.

We're considering making other folders available in a similar way, but no decision has been taken on this.

What is your specific requirement around this?

Thanks,
Florian.

Posted: Thu Nov 10, 2005 5:53 am
by EazyAdm
we want to store all our contacts centralized.

because of a intranet extranet solutions for our internal work as for our customers that they can see the state of theier orders and so on.

That they can chance theier contacts (street, name etc.) and the new values will be available in our erp-system.

is there another way to get the contacts or is there noway ?

another problem is that when we add a new field in a contact, that we can't find the place where this fields will be saved.

thanks

bye
eazy

Posted: Thu Nov 10, 2005 5:57 am
by florian
So if LDAP is your preferred means of accessing these contacts, why don' t you just create a special mailbox for the purpose and store all the contacts data in the private contacts folder of this box. you can then make this available through outlook delegation for other people to open.

please explain in more detail what you mean by extending fields.

cheers,
Florian.

Posted: Thu Nov 10, 2005 6:41 am
by EazyAdm
i tought that i can easily get all the contacts with ldap.

if there is another way, i can use it, no problem ;-)

when i open a contact in outlook, there is the form "all fileds"
in this form is at the buttom a button named "new" there i can insert as many fileds as i need, for special values (eg. customernumber).

but i can't find the fileds in the ldap tree. but i can find the value that i've insertet in a binary file in /var/opt/scalix/data

thanks

bye
eazy

Posted: Thu Nov 10, 2005 6:47 am
by florian
ok. Outlook-added fields are not accessible via LDAP at this point.

The LDAP support to access personal contacts data was mainly added to support Scalix Web Access and Standards-based email clients such as Mozilla Thunderbird.

These do not support the added fields as well on the client side, so making these accessible through LDAP was never mentioned as a requirement so far.

Cheers,
Florian.