retrieving the DN from Open Directory
retrieving the DN from Open Directory
- Subject: retrieving the DN from Open Directory
- From: "Joubert Berger" <email@hidden>
- Date: Sun, 13 Aug 2006 16:00:11 -0400
Hi everyone,
First, I must admit, I am not that well versed in Open Directory or
LDAP and have only recently started working with Darwin. So
sometimes, I get the terminology wrong ;-) Anyway, here goes...
I have been tasked with recording the DN when a user logs in. At
first, I used the Open Directory API to query for the "dn" attribute
(I was using Active Directory, which has such an attribute). But,
then I noticed that when I am using 10.3.x, I was not getting the dn.
But both 10.3 and 10.4 both had the distinguishedName attribute. So,
I used that and everything worked fine. But, then I realised that
this was incorrect. openLDAP does not have this kind of attribute and
what I needed to do is get the dn of the entry that I am looking for.
In openldap, we do something like this (doing this from memory, not
sure I got it 100% correct):
searchldap -LLL "uniqueID=1006"
where uniqueID is the uid of the user logged in. We then parse out the dn.
How can I accomplish the same using the Open Directory API?
--joubert
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden