From: Nicholas J. C. <nc...@gm...> - 2007-08-10 19:47:30
|
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 |
From: Godefroid C. <go...@bu...> - 2011-04-07 18:20:29
|
Hi, I am trying to access a Lotus Notes LDAP server. I got the information from the Notes admin that I should use a Base DN that consists of a single space. That feels very strange to me. Has one of the subscribers already succeeded to connect to Lotus Notes ? Thanks -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be |
From: Godefroid C. <go...@bu...> - 2011-04-08 07:05:47
|
Le 07/04/11 21:04, Chris Dukes a écrit : > On Thu, Apr 07, 2011 at 07:59:55PM +0200, Godefroid Chapelle wrote: >> Hi, >> >> I am trying to access a Lotus Notes LDAP server. >> >> I got the information from the Notes admin that I should use a Base DN >> that consists of a single space. That feels very strange to me. > > The problem you are having is not specific to python-ldap, nor Lotus LDAP. > > Be the DN '' (an empty string) or ' ' (A space) or ' ' (Lots of spaces) > it's the DN of the root of the tree on that LDAP server. > >> >> Has one of the subscribers already succeeded to connect to Lotus Notes ? > > > I suggest attempting the following against the Lotus Domino LDAP. > ldapsearch -h LDAPServer -x -b '' -s base 'objectclass=*' > This will return the LDAP entry for the root of the tree, which may or may not > contain anything interesting. > > Now look one level further down. > ldapsearch -h LDAPServer -x -b '' -s one 'objectclass=*' > Which will probably show all of groups. > >> >> Thanks >> -- >> Godefroid Chapelle (aka __gotcha) http://bubblenet.be The hints you gave about the use of ldapsearch enabled me to understand better the setup of the Notes server I was trying to search. I have now a working setup : thanks for this ! -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be |
From: Alain S. <asp...@gm...> - 2007-08-10 20:48:01
|
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 <nc...@gm...> 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 > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > > -- -- Alain Spineux aspineux gmail com May the sources be with you |
From: Nicholas J. C. <nc...@gm...> - 2007-08-10 20:58:01
|
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 <asp...@gm...> 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 <nc...@gm...> 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 > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > > > > > > > -- > -- > Alain Spineux > aspineux gmail com > May the sources be with you > |
From: David L. <d...@ad...> - 2007-08-11 10:45:11
|
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* < asp...@gm... > <mailto:asp...@gm...>> 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 <nc...@gm... > <mailto:nc...@gm...>> 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 > > Pyt...@li... > <mailto:Pyt...@li...> > > 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 > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > -- David Leonard d...@ad... Ph:+61 404 844 850 |