I know how to create a user, with NetUserAdd, and put it into a group, with
NetGroupAddUser.
But I would like to add the user into an OU.
The only API I found out, about OU, is: NetGetJoinableOUs, into the
'Directory Service Functions'
located in:
ms-help://MS.MSDNQTR.2003FEB.1036/netmgmt/netmgmt/directory_service_function
s.htm
but, why can't i find an API which name is NetOUAddUser ? (like
NetGroupAddUser)
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
adebaene
"manu" wrote in message news:...
Hi everybody !
I would like to add the user into an OU.
Use ADSI. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/creating_and_deleting_objects.asp for an example.
You can also use the LDAP protocol directly : See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/lightweight_directory_access_protocol_ldap_api.asp?frame=true
Arnaud MVP - VC
"manu" <manu@manu.net> wrote in message news:<ewy2ZUWmEHA.712@TK2MSFTNGP09.phx.gbl>...
Hi everybody !
I would like to add the user into an OU.
Use ADSI.
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/creating_and_deleting_objects.asp
for an example.
You can also use the LDAP protocol directly : See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/lightweight_directory_access_protocol_ldap_api.asp?frame=true
Use ADSI. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/creating_and_deleting_objects.asp for an example.
You can also use the LDAP protocol directly : See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/lightweight_directory_access_protocol_ldap_api.asp?frame=true
Arnaud MVP - VC
manu
thanks a lot !
"Arnaud Debaene" a écrit dans le message de news:
"manu" wrote in message news:...
Hi everybody !
I would like to add the user into an OU.
Use ADSI. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/creating_and_deleting_objects.asp