Hi,
I am developing a small programme to add ACTIVE DIRECTORY users to another
server. everything works fine .. I get the users from AD using LDAP but while
adding users I need to get the user in the form of Domain\UserName. I get the
domain name of our server but I face another problem which is
our server name is "Preston" which I get it easily but user format in active
directory is in the form of "Preston0\UserName" I have tried all the possible
properties of Active Directory User but didnt able to get this Pre-window
Active Directory Domain structure.
How can I get the Active Directory Domain name programmatically.
Please help me out for this problem, I shall be very gratefull of you people
for any help.
Thanks in advance,