Re: Creating Active Directory Objects
(repost from another address_
Here's something that may be useful in this conversation about AD
Objects. I wrote with some reference help a script to pack a SID as I
was creating the necessary objects to create AD accounts from python
using python-ldap:
"""
packsid
"""
import base64,struct
def packsid(textsid):
if textsid[0] != 'S':
return;
data = (textsid[2:]).split('-')
rev = int(data[0])
idauth = int(data[1])
subauthcount = len(data) - 2
packedsid = struct.pack("8B", rev, subauthcount, 0, 0, 0, 0, 0,
idauth)
for i in range(0,subauthcount):
addpack = struct.pack(" Michael Ströder wrote:
>
>> I vaguely remember that there are some issues with really
>> activating a
>> user entry as a Windows user. But this is not a problem of
>> accessing AD
>> via python-ldap.
>>
>
> This indeed rings a bell. You need to create the user as disabled
> (look
> for userAccountControl on MSDN), set a compliant password, and then
> enable him.
>
> Regards,
> Geert
>
> --
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Python-LDAP-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: Creating Active Directory Objects
Here's something that may be useful in this conversation about AD
Objects. I wrote with some reference help a script to pack a SID as I
was creating the necessary objects to create AD accounts from python
using python-ldap:
"""
packsid
"""
import base64,struct
def packsid(textsid):
if textsid[0] != 'S':
return;
data = (textsid[2:]).split('-')
rev = int(data[0])
idauth = int(data[1])
subauthcount = len(data) - 2
packedsid = struct.pack("8B", rev, subauthcount, 0, 0, 0, 0, 0,
idauth)
for i in range(0,subauthcount):
addpack = struct.pack(" Michael Ströder wrote:
>
>> I vaguely remember that there are some issues with really
>> activating a
>> user entry as a Windows user. But this is not a problem of
>> accessing AD
>> via python-ldap.
>>
>
> This indeed rings a bell. You need to create the user as disabled
> (look
> for userAccountControl on MSDN), set a compliant password, and then
> enable him.
>
> Regards,
> Geert
>
> --
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Python-LDAP-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
