retrieving the DN from Open Directory
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kjXjU8YFY6n4qv33uw1+wb/aLjkeAYI+QEAsleG8DKsmvhYim37ImikmYIHAdVvNd5JvL2AT0qKXOKLQrUno5fYi4WwTOxgn+1eFCrrOVgpoJh9V4a/V/aGZji37fEPwiJVA6RZdlvvrCQct9KsPCALwcfJYnFyPv0q8QOSZE7o= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Joubert Berger