• 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
Accessing ADS via EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing ADS via EO


  • Subject: Accessing ADS via EO
  • From: Anthony Glover <email@hidden>
  • Date: Fri, 1 Oct 2004 08:11:24 -0500

I have created an EOModel for accessing User objects from an Active
Directory Server. I am able to bind to the server and retrieve data with no
problem. I would now like to associate objects in my database with Users in
the Active Directory Server. To do this, I am going to store the objectGUID
(since it does not change if the user is renamed or moved) as a field in my
database for use in looking up users in the ADS.


The problem I have is that according to the ADS documentation the value is a
16 byte (128 bit) binary value stored as an "octet string" but when I
retrieve the value via my EOModel and attempt to store it in my database
field, I'm told that I'm trying to store 28 bytes of data into a 16 byte
field.


I have looked at the value stored in the database and only the last
(right-most) 4 bytes of the numbers look like what is stored in the
directory (as viewed by an LDAP administrator tool). The rest of the value
does not look the same.


Does anyone have any experience with accessing the objectGUID field via the
JNDI/EOModel? I'm wondering if it is simply a mater of encoding or
something. Any help would be greatly appreciated.


Thanks,
Tony

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Java 5.0 (Tiger) and WebObjects?
  • Next by Date: Re: cannot update imported DB entries; can update new ones
  • Previous by thread: Re: Java 5.0 (Tiger) and WebObjects?
  • Next by thread: Re: cannot update imported DB entries; can update new ones
  • Index(es):
    • Date
    • Thread