Hi all,
I work for an organisation that has absorbed many others over the past few years. Now we have a few child domains in our AD forest, but we use the one domain name "@abc.com" for internet addressing.
I am currently writing an Application so my Helpdesk can automatically create mailboxes once our AD team has created the AD object. That part is easy, however the tricky bit is getting my App to make sure that the new user "Fred Bloggs" doesn't have a conflicting "Fred Bloggs" in another domain & therefore my new Fred gets "Fred.Bloggs2@abc.com".
The current search I'm doing is:
<LDAP://DC=abc,DC=com>;(&(objectCategory=person)(givenName=fred)(|(sn=bloggs)));name,distinguishedName,msExchHomeServerName,homeMDB,samAccountName,EmployeeID,ProxyAddresses
This works a treat when searching one domain, but nails me when trying to search the "Entrie Directory" like I can in ADUC.
Any suggestions on a fast, easy method of searching an Entire Forest from a GC would make my headache go away .
Thanks in advance.
Doc.
I work for an organisation that has absorbed many others over the past few years. Now we have a few child domains in our AD forest, but we use the one domain name "@abc.com" for internet addressing.
I am currently writing an Application so my Helpdesk can automatically create mailboxes once our AD team has created the AD object. That part is easy, however the tricky bit is getting my App to make sure that the new user "Fred Bloggs" doesn't have a conflicting "Fred Bloggs" in another domain & therefore my new Fred gets "Fred.Bloggs2@abc.com".
The current search I'm doing is:
<LDAP://DC=abc,DC=com>;(&(objectCategory=person)(givenName=fred)(|(sn=bloggs)));name,distinguishedName,msExchHomeServerName,homeMDB,samAccountName,EmployeeID,ProxyAddresses
This works a treat when searching one domain, but nails me when trying to search the "Entrie Directory" like I can in ADUC.
Any suggestions on a fast, easy method of searching an Entire Forest from a GC would make my headache go away .
Thanks in advance.
Doc.