The operational attribute "objectGUID" is available via an ldap browser for AD 
person objects.  This KB article might give you a better idea of how to handle 
this since I assume you are using ADSI with C#: 
http://support.microsoft.com/kb/325648.  It looks like you can use GUID= (as 
opposed to objectguid) using the hex string version of the guid.  I did not try 
it against AD but with eDirectory you could search using the hex guid as well.

Don

-----Original Message-----
From: Ambuj [mailto:ambujn...@gmail.com] 
Sent: Monday, December 15, 2008 10:21 PM
To: perl-ldap@perl.org
Subject: Re: Search Filter in Active Directory


Hi,

we're trying to convert the

string representation of a GUID like (EEF00083-3454-5c6c-9ACB-
FC9E8394FC8D,

for example) OR like ("bd1b2ce5f9bb9546b032aaf0008dc9ea")  format to
that of the actual GUID datatype appropriate to be stored inside of
Active Directory for querying into that.

 my requirment is to search the user inside the active directory based
on the ADGUID

Is there an easy to accomplish this in C#.

I found some of the articals on that ,but all are in VB and VB script

http://support.microsoft.com/kb/302467

http://www.eggheadcafe.com/forumarchives/scriptingwsh/Jul2005/post23378041.asp

 Can any body tell me do that same thing in C#.net

Please reply ASAP






On Dec 15, 7:13 pm, karsten.kankow...@airbus.com (Karsten Kankowski)
wrote:
> Hi Ambj,
>
> well, If I browse one of our AD, following objects are used:
> top
> person
> organizationalPerson
> contact
>
> In none of theses object a atribute GUID is included. Well, do you able to
> browse ( via Jexplore ore something else ) the AD to see which objects are
> available?.
> The object "person" OID 2.5.6.6 do not include a GUID so your filter must
> fail.. :-(
>
> I hope this help you a bit...
>
> regards
> Karsten
>
> Am Montag, 15. Dezember 2008 13:27 schrieb Ambuj:
>
>
>
>
>
> > Hi ,
>
> >  Can any body suggest me the search filter based on the ADGUID to
> > update fields in active directory
>
> >  I am using
> > search.Filter = String.Format(CultureInfo.InvariantCulture, "(&(GUID=
> > {0})(objectClass=person))", a);
>
> >  where a is the variable which contains the value of ADGUID
>
> >        Please reply ASAP,it's urgent
>
> > This mail has originated outside your organization, either from an external
> > partner or the Global Internet. Keep this in mind if you answer this
> > message.
>
> --
>        ////   Never forget your towel    \\\\
> ***********************************************************
> Karsten Kankowski
> on behalf of Computacenter
> Subcontractor for OADI
> Phone: +49 (0)40 743 74589
> Fax: +49 (0)40 743 870 74589
> Mailto:karsten.kankow...@airbus.com
> PgP-Key 0x754EEF1D Nick:SLbrxCjzO5yRU
> **********************************************************
>
> The information in this e-mail is confidential. The contents may not be 
> disclosed or used by anyone other then the addressee. Access to this e-mail 
> by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and 
> delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of 
> this e-mail as it has been sent over public networks. If you have any 
> concerns over the content of this message or its Accuracy or Integrity, 
> please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus 
> scanning software but you should take whatever measures you deem to be 
> appropriate to ensure that this message and any attachments are virus free.- 
> Hide quoted text -
>
> - Show quoted text -

Reply via email to