Last post Mar 23, 2010 06:45 PM by bluelinenetworks
Mar 22, 2010 11:23 PM|bluelinenetworks|LINK
Does anyone have experience with creating users through vb.net scripting? We have an app that authenticates through LDAP (OpenLDAP server, not an Active Directory) and are looking to manage the users through a custom web portal which I am working on, however,
I am having trouble finding how to create users.
Mar 23, 2010 11:07 AM|ignatandrei|LINK
Mar 23, 2010 06:45 PM|bluelinenetworks|LINK
Thanks for the link, I guess I would just adapt that to LDAP://LdapServer instead of WinNT://Environment.MachineName?
Or do I need to use something else for a non-Active Directory LDAP?
Dim connectionPrefix As String = String.Empty
connectionPrefix = "LDAP://server/ou=Users,dc=test,dc=net"
Dim dirEntry As New DirectoryServices.DirectoryEntry(connectionPrefix, "cn=user", "password")
Dim newUser As DirectoryServices.DirectoryEntry = dirEntry.Children.Add("cn=test,ou=Users,dc=bluelinenetworks,dc=net", "user")
Catch ex As System.DirectoryServices.DirectoryServicesCOMException
Seems to just spit out: A device attached to the system is not functioning.