• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
retrieving the DN from Open Directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: retrieving the DN from Open Directory
      • From: Nigel Kersten <email@hidden>
    • Re: retrieving the DN from Open Directory
      • From: Markus Hitter <email@hidden>
  • Prev by Date: Xcode 2.3 source gone
  • Next by Date: Re: retrieving the DN from Open Directory
  • Previous by thread: Re: Xcode 2.3 source gone
  • Next by thread: Re: retrieving the DN from Open Directory
  • Index(es):
    • Date
    • Thread