python-ldap is a bit low level for that. AD is LDAP (and Kerberos) at
heart, but there's a lot more to it than just that. python-ldap talks at
the LDAP level.
This is an outline of what I think you want to do: you'll need to
sasl-bind to the AD server, then locate your user's object. Its
attribute userAccountControl is an integer with a bitmask of settings.
Turn on bit 1 (ie value = value | 0x2) See
http://support.microsoft.com/kb/305144 for details.
d
Nicholas Jay Chokas wrote:
ok. I was just wondering what function or class I would need to use
in the python-ldap module to update a user account's info, to enable it.
like with the active_directory module, you can do like
username.AccountDisabled() == True username.setInfo()
On 8/10/07, *Alain Spineux* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi
python-ldap is a ldap client library and then can access any LDAP
server,
including the not completely compliant M$ active directory.
But your problem is not very clear in your question.
On 8/10/07, Nicholas Jay Chokas <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> Hello, I'm trying to write a script to enable user accounts that
I run
> cross-platform. (Linux and PC)
>
> Does anyone know how I could start go about doing this?
>
> I know there is active_directory python module, but that solely
relies on
> win32 COM architecture.
>
> any help/suggestions is appreciated....
>
> Thanks,
>
> Nick
>
>
>
>
-------------------------------------------------------------------------
> 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
> Python-LDAP-dev@lists.sourceforge.net
<mailto:Python-LDAP-dev@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>
>
--
--
Alain Spineux
aspineux gmail com
May the sources be with you
------------------------------------------------------------------------
-------------------------------------------------------------------------
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
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
--
David Leonard [EMAIL PROTECTED]
Ph:+61 404 844 850
-------------------------------------------------------------------------
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
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev