Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



ldap query with guid

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-06-2009
Member
 
Join Date: Jul 2006
Posts: 442
ldap query with guid

Can anyone tell me how to specify a LDAP query with a filter for a guid? I need to query for the property "msexchmailboxguid", and I think this value could be of type "16 bytes array", not "guid", which could make it hard to specify in a query tool. The query with a filter is like:

(displayname=XYZ)
will work, but the filter:
(msexchmailboxguid={12345678-1234-1234-1234-123412341234})
will not return any AD object.

Any help would be appreciated.

Reply With Quote
  #2  
Old 17-06-2009
Member
 
Join Date: Jun 2006
Posts: 620
Re: ldap query with guid

Can you check if the below filter works for that GUID:

msExchMailboxGUID=\78\56\34\12\34\12\34\12\12\34\12\34\12\34\12\34

It it is working, then it is just a case of wanting to convert the COM style string format GUID t binary format and then prefixing each byte with a \. I have a tool on my site in the files called GUIDConverter that simplifies the conversion of GUIDs to formats that are useful in LDAP.
Reply With Quote
  #3  
Old 17-06-2009
Member
 
Join Date: Oct 2005
Posts: 1,199
Re: ldap query with guid

I think that you should use the hex format for the guid and then escape the hex characters. For instance, if the objectGUID is "{B95F3990-B59A-4A1B-9E96-86C66CB18D99}", then the hex format is "90395FB99AB51B4A9E9686C66CB18D99", and you will use:

"(objectGUID=\90\39\5F\B9\9A\B5\1B\4A\9E\96\86\C6\6C\B1\8D\99)"
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "ldap query with guid"
Thread Thread Starter Forum Replies Last Post
LDAP query to speficied LDAP server on TCP port 389 failed Shash Windows Server Help 2 02-05-2012 05:01 PM
LDAP query to two different domains manjusha Technology & Internet 1 01-12-2010 03:58 PM
LDAP Query AD shivinder Active Directory 4 03-06-2010 11:23 AM
LDAP query Palaksi Active Directory 3 11-12-2008 01:09 AM
LDAP query can it be done ? zscw1 Active Directory 3 13-11-2008 09:08 AM


All times are GMT +5.5. The time now is 07:21 PM.