Last post Mar 11, 2013 03:44 PM by smirnov
Member
52 Points
170 Posts
Mar 05, 2013 02:36 PM|burepallisri|LINK
Hi,
how to create the user in the given domain
my path is like this LDAP://server:389/CN=Users,DC=xyz
when i try to create it is was giving me the below error
directory services a referral was returned from the server
thanks,
All-Star
35149 Points
9075 Posts
Mar 11, 2013 03:44 PM|smirnov|LINK
DirectoryEntry container = new DirectoryEntry("LDAP://..."); using (container) { DirectoryEntry newObject = container.Children.Add("CN=New User", "user"); using (newObject) { //now add properties as appropriate; newObject.Properties["uid"].Add("newuser1"); newObject.CommitChanges(); } }
If you search you can find multiple posts regarding same matter, e.g.
http://forums.asp.net/t/1683986.aspx/1
Hope this helps.
Member
52 Points
170 Posts
how to create a user in ldap in given domain?
Mar 05, 2013 02:36 PM|burepallisri|LINK
Hi,
how to create the user in the given domain
my path is like this LDAP://server:389/CN=Users,DC=xyz
when i try to create it is was giving me the below error
directory services a referral was returned from the server
thanks,
All-Star
35149 Points
9075 Posts
Re: how to create a user in ldap in given domain?
Mar 11, 2013 03:44 PM|smirnov|LINK
If you search you can find multiple posts regarding same matter, e.g.
http://forums.asp.net/t/1683986.aspx/1
Hope this helps.