How to get ou of an user
dl
Date: 05/25/05
- Next message: Pasi Häkkinen: "Quering PrincipalSecurityAttributes on class"
- Previous message: ManniAT: "Re: File download"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: How to get ou of an user"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: How to get ou of an user"
- Reply: Jan Peter Stotz: "Re: How to get ou of an user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 May 2005 18:34:40 +0800
Hi
I wonder if there is other / faster ways to get ou of the login user?
Here is what I can think of
- authentication
- Search with SAMAccountName=<username entered>
- set PropertiesToLoad.Add("distinguishedName")
- parse the OU= string from the property returned
TIA
--
- Next message: Pasi Häkkinen: "Quering PrincipalSecurityAttributes on class"
- Previous message: ManniAT: "Re: File download"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: How to get ou of an user"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: How to get ou of an user"
- Reply: Jan Peter Stotz: "Re: How to get ou of an user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|