To get user distingushed name using Default Naming Context..

M

masani paresh

Hello Friends,

If anyone know hot to get DN for user using DefaultNamingContext then please
let me know. I got the naming context as follow but i dont know what to do
after. please help me.

root = group = new DirectoryEntry("LDAP://RootDSE");
string namingContext = (string)root.Properties["defaultNamingContext"].Value;
if (namingContext == null)
namingContext =
(string)root.Properties["namingContext"].Value;

Thanks in advance,
Paresh
 
E

Eric Legault [MVP - Outlook]

Hi Paresh. Please repost your message in an Active Directory programming
forum - this one is for Outlook programming.
 
M

masani paresh

Hi,
I check but i didnt get the AD forum. Could you please let me know where is
it?

Eric Legault said:
Hi Paresh. Please repost your message in an Active Directory programming
forum - this one is for Outlook programming.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


masani paresh said:
Hello Friends,

If anyone know hot to get DN for user using DefaultNamingContext then please
let me know. I got the naming context as follow but i dont know what to do
after. please help me.

root = group = new DirectoryEntry("LDAP://RootDSE");
string namingContext = (string)root.Properties["defaultNamingContext"].Value;
if (namingContext == null)
namingContext =
(string)root.Properties["namingContext"].Value;

Thanks in advance,
Paresh
 
J

JP

How about

microsoft.public.windows.server.active_directory

?


HTH,
JP

Hi,
I check but i didnt get the AD forum. Could you please let me know where is
it?

:


Hi Paresh.  Please repost your message in an Active Directory programming
forum - this one is for Outlook programming.
--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault/
Hello Friends,
If anyone know hot to get DN for user using DefaultNamingContext then please
let me know. I got the naming context as follow but i dont know what to do
after. please help me.
 root = group = new DirectoryEntry("LDAP://RootDSE");
 string namingContext = (string)root.Properties["defaultNamingContext"].Value;
            if (namingContext == null)
                namingContext =
(string)root.Properties["namingContext"].Value;
Thanks in advance,
Paresh- Hide quoted text -

- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top