Re: ldap or active directory module

2016-09-09 Thread John Gordon
In Robert Clove writes: > I want to find if the particular group exist in my active directory Search on the group's DN, specifying SCOPE_BASE as the search scope. If you get a result, then the group exists, otherwise it doesn't. > also another function to find the user in a

Re: ldap or active directory module

2016-09-09 Thread Shyam Parimal Katti
ive > directory module > I want to find if the particular group exist in my active directory also > another function to find the user in a particular group > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

ldap or active directory module

2016-09-09 Thread Robert Clove
Is it possible to find the following things using python ldap or active directory module I want to find if the particular group exist in my active directory also another function to find the user in a particular group -- https://mail.python.org/mailman/listinfo/python-list

Re: Active Directory user creation with python-ldap

2011-04-29 Thread Michael Ströder
Nello wrote: > I need to create an Active Directory user using python-ldap library. So, I > authenticate with an admin account and I use "add_s" to create the user. This is possible. Which version of AD are you working with. > Anyway, by default users are disabled on cr

Active Directory user creation with python-ldap

2011-04-26 Thread Nello
I need to create an Active Directory user using python-ldap library. So, I authenticate with an admin account and I use "add_s" to create the user. Anyway, by default users are disabled on creation, and I can not set userAccountControl to swith off the flag ACCOUNTDISABLE, i.

Active Directory ADO strange objects returned

2009-12-11 Thread marc wyburn
Hi, I have a script that returns data from active directory using ADO. Everything works except for any fields that use a time value I get an instance of an object returned called . I know it's a time object because if I do object.HighPart or object.LowPart I get a value back. The bit I

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
Michael Ströder wrote: jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 'cn', '

windows active directory ldap output encoding

2008-07-08 Thread jo3c
Hi.. Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 what im doing is simliar to ldapsearch in shell with my python script using python ldap module the result is not the correct encoding.. i&#x

Re: Active Directory: how to delete a user from a group?

2007-05-04 Thread Dirk Hagemann
On 2 Mai, 17:48, Tim Golden <[EMAIL PROTECTED]> wrote: > Tim Golden wrote: > >Dirk Hagemannwrote: > >> Hi! > > >> Does anyone has experience with manipulating MS Active Directory > >> objects? I'd like to delete some users from a group, b

Re: Active Directory: how to delete a user from a group?

2007-05-02 Thread Tim Golden
Tim Golden wrote: > Dirk Hagemann wrote: >> Hi! >> >> Does anyone has experience with manipulating MS Active Directory >> objects? I'd like to delete some users from a group, but so far I >> couldn't find anything about this. >> There is some good

Re: Active Directory: how to delete a user from a group?

2007-05-02 Thread Tim Golden
Dirk Hagemann wrote: > Hi! > > Does anyone has experience with manipulating MS Active Directory > objects? I'd like to delete some users from a group, but so far I > couldn't find anything about this. > There is some good stuff about retrieving data out of the AD (t

Active Directory: how to delete a user from a group?

2007-05-02 Thread Dirk Hagemann
Hi! Does anyone has experience with manipulating MS Active Directory objects? I'd like to delete some users from a group, but so far I couldn't find anything about this. There is some good stuff about retrieving data out of the AD (thanks to Tim Golden!), but how can I manipulate or

Re: using python to query active directory

2007-03-07 Thread Michael Ströder
David Bear wrote: > Is it possible to use python to make calls agains microsoft active > directory? What do you mean with "calls agains microsoft active directory"? Querying user and computer entries etc.? python-ldap might be an option for you. Ciao, Michael. -- http://mail.py

Re: using python to query active directory

2007-03-06 Thread David Bear
jay graves wrote: > On Mar 6, 1:34 pm, David Bear <[EMAIL PROTECTED]> wrote: >> Is it possible to use python to make calls agains microsoft active >> directory? I suppose this should be qualified by what is needed to do it >> from windows (I assume the win32all

Re: using python to query active directory

2007-03-06 Thread jay graves
On Mar 6, 1:34 pm, David Bear <[EMAIL PROTECTED]> wrote: > Is it possible to use python to make calls agains microsoft active > directory? I suppose this should be qualified by what is needed to do it > from windows (I assume the win32all package) and from linux (if possible). >

using python to query active directory

2007-03-06 Thread David Bear
Is it possible to use python to make calls agains microsoft active directory? I suppose this should be qualified by what is needed to do it from windows (I assume the win32all package) and from linux (if possible). Any code samples would be great. -- David Bear -- let me buy your intellectual

Re: Group Membership in Active Directory Query

2007-02-16 Thread Tim Golden
Kooch54 wrote: >> Thanks for your response and Uwe I apologize if I misunderstood >> and misinterpreted your comments. I am sorry. >> I have tried Tim's module called active_directory and it works really >> well. But I can't figure out how to connect to a specific group is I >> know the comm

Re: Group Membership in Active Directory Query

2007-02-16 Thread Kooch54
On Feb 8, 8:44 am, "Kooch54" <[EMAIL PROTECTED]> wrote: > On Feb 7, 7:52 pm, "alex23" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 8, 4:27 am, [EMAIL PROTECTED] wrote: > > > > First and foremost thanks for the feedback. Although I don't > > > appreciate the slight dig at me. > > > dummy = ldap_obj.

Re: Group Membership in Active Directory Query

2007-02-08 Thread Kooch54
On Feb 7, 7:52 pm, "alex23" <[EMAIL PROTECTED]> wrote: > On Feb 8, 4:27 am, [EMAIL PROTECTED] wrote: > > > First and foremost thanks for the feedback. Although I don't > > appreciate the slight dig at me. > > dummy = ldap_obj.simple_bind.. > > I _really_ don't think Uwe was intending any sligh

Re: Group Membership in Active Directory Query

2007-02-07 Thread alex23
On Feb 8, 4:27 am, [EMAIL PROTECTED] wrote: > First and foremost thanks for the feedback. Although I don't > appreciate the slight dig at me. > dummy = ldap_obj.simple_bind.. I _really_ don't think Uwe was intending any slight, 'dummy' generally means 'dummy variable' ie it's just there to ca

Re: Group Membership in Active Directory Query

2007-02-07 Thread kooch54
On Feb 7, 11:56 am, Uwe Hoffmann <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > ldap_obj = ldap_obj.simple_bind_s('[EMAIL PROTECTED]', > > 'password') > > > AttributeError: 'NoneType' object has no attribute 'search_Ext_s' > > dummy = ldap_obj.simple

Re: Group Membership in Active Directory Query

2007-02-07 Thread Uwe Hoffmann
[EMAIL PROTECTED] schrieb: > ldap_obj = ldap_obj.simple_bind_s('[EMAIL PROTECTED]', > 'password') > > > AttributeError: 'NoneType' object has no attribute 'search_Ext_s' > dummy = ldap_obj.simple_bind_s('[EMAIL PROTECTED]', 'pa

Re: Group Membership in Active Directory Query

2007-02-07 Thread kooch54
On Feb 7, 9:22 am, [EMAIL PROTECTED] wrote: > I am trying to write a script to simply query the group members in an > active directory group. I need to use LDAP to make sure I capture any > global > global group nestings that may occur. I already have a > function that uses Wi

Group Membership in Active Directory Query

2007-02-07 Thread kooch54
I am trying to write a script to simply query the group members in an active directory group. I need to use LDAP to make sure I capture any global > global group nestings that may occur. I already have a function that uses WinNT provider to capture this info from NT4 or AD domains and it wo

active directory

2006-12-14 Thread stavenko
Hello all. I'm trying ot get users from Active directory. using python-ldap. We have a windows network domain. So I tried this code: import ldap l = ldap.initialize("ldap://ldap.server";) l.protocol_version = ldap.VERSION3 l.simple_bind_s('','') for i in

Re: Active Directory Authentication

2006-05-08 Thread D
Thanks to everyone for your help..I'm not familiar with the packages mentioned, so this will definitely be a learning experience! -- http://mail.python.org/mailman/listinfo/python-list

Re: Active Directory Authentication

2006-05-06 Thread Michael Ströder
Stephan Diehl wrote: > On Fri, 05 May 2006 05:39:08 -0700, D wrote: > >>Is it possible to have Python authenticate with Active Directory? >>Specifically what I'd like to do is have a user enter a >>username/password, then have Python check the credentials with AD - if

Re: Active Directory Authentication

2006-05-05 Thread Roger Upole
ED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to have Python authenticate with Active Directory? > Specifically what I'd like to do is have a user enter a > username/password, then have Python check the credentials with AD - if > what they entered is valid, for example

Re: Active Directory Authentication

2006-05-05 Thread Philippe Martin
Benji York wrote: > D wrote: >> Is it possible to have Python authenticate with Active Directory? >> Specifically what I'd like to do is have a user enter a >> username/password, then have Python check the credentials with AD - if >> what they entered is va

Re: Active Directory Authentication

2006-05-05 Thread Benji York
D wrote: > Is it possible to have Python authenticate with Active Directory? > Specifically what I'd like to do is have a user enter a > username/password, then have Python check the credentials with AD - if > what they entered is valid, for example, it returns a 1, otherwis

Re: Active Directory Authentication

2006-05-05 Thread Stephan Diehl
On Fri, 05 May 2006 05:39:08 -0700, D wrote: > Is it possible to have Python authenticate with Active Directory? > Specifically what I'd like to do is have a user enter a > username/password, then have Python check the credentials with AD - if > what they entered is valid, for ex

Re: Active Directory Authentication

2006-05-05 Thread Christoph Haas
On Fri, May 05, 2006 at 05:39:08AM -0700, D wrote: > Is it possible to have Python authenticate with Active Directory? > Specifically what I'd like to do is have a user enter a > username/password, then have Python check the credentials with AD - if > what they entered is valid

Active Directory Authentication

2006-05-05 Thread D
Is it possible to have Python authenticate with Active Directory? Specifically what I'd like to do is have a user enter a username/password, then have Python check the credentials with AD - if what they entered is valid, for example, it returns a 1, otherwise a 0.. Thanks! --

Problem binding to Active Directory

2006-03-24 Thread Rudy Schockaert
I use the following script:from win32com.client import GetObject, Dispatchuser=''password=''default_naming_context = GetObject("LDAP://rootDSE").Get("defaultNamingContext")ad = GetObject("LDAP:").OpenDSObject("LDAP://%s" % default_naming_context, user, password, 1 + 512) If user & password contain

Re: Seaching Active Directory via ADO

2006-02-18 Thread LittlePython
With help I have been able to put together a little example. It illustrates several different ways.. import win32com.client c = win32com.client.Dispatch("ADODB.Connection") c.Open("Provider=ADSDSOObject") ##Check if connected to AD if bool(c.state): print "Connected to AD" ## This uses sql dia

Re: Seaching Active Directory via ADO

2006-02-17 Thread Rudy Schockaert
O and python > when connecting to AD?> I have try to build one myself with no luck. I think my problem is with> adodb.command calls.>> Thanks for your response.>> "alex23" < [EMAIL PROTECTED]> wrote in message> news:[EMAIL PROTECTED]> > Heya,> >> > T

Re: Seaching Active Directory via ADO

2006-02-17 Thread Roger Upole
self with no luck. I think my problem is with > adodb.command calls. > > Thanks for your response. > > "alex23" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Heya, > > > > There are a couple of examples on the O'Reilly site.

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
yself with no luck. I think my problem is with > > adodb.command calls. > > > > Thanks for your response. > > > > "alex23" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Heya, > > > > > > There are a c

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
problem is with adodb.command calls. Thanks for your response. "alex23" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Heya, > > There are a couple of examples on the O'Reilly site. These two are > taken from 'Active Directory Cookbook', the

Re: Seaching Active Directory via ADO

2006-02-17 Thread alex23
Heya, There are a couple of examples on the O'Reilly site. These two are taken from 'Active Directory Cookbook', the first uses a COM object while the second uses a native LDAP module: http://www.rallenhome.com/books/adcookbook/src/18.6-rootdse_python_com.py.txt http://www.ralle

Re: Seaching Active Directory via ADO

2006-02-17 Thread Roger Upole
MAIL PROTECTED] > > > > > Thanks but I was looking more for ADO com object than ADSI or ldap. > > > > > For some strange reason it is very hard to locate any working > scripts > > > that > > > > > use ADO to connect and sea

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
-- END CONFIGURATION - set objConn = CreateObject("ADODB.Connection") objConn.Provider = "ADsDSOObject" objConn.Open "Active Directory Provider" set objComm = CreateObject("ADODB.Command") objComm.ActiveConnection = objConn objComm.Properties("

Re: Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
e > > > > news:[EMAIL PROTECTED] > > > > > Thanks but I was looking more for ADO com object than ADSI or ldap. > > > > > For some strange reason it is very hard to locate any working > scripts > > > that > > > > > use ADO to con

Re: Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
ry hard to locate any working scripts > > that > > > > use ADO to connect and search AD. Is there an issue with ADO and > python > > > > when connecting to AD? > > > > I have try to build one myself with no luck. I think my problem is > with >

Re: Seaching Active Directory via ADO

2006-02-16 Thread Roger Upole
O and python > > > when connecting to AD? > > > I have try to build one myself with no luck. I think my problem is with > > > adodb.command calls. > > > > > > Thanks for your response. > > > > > > "alex23" <[EMAIL PROTEC

Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
I am have trouble finding a simple working example of using ADO to search Active Directory. I am hoping someone could point me to a generic working script that connects to AD and pulls up a recordset to help me get started into the right direction in learning ADO, ADSI on Python. -- http

Re: Convert Active Directory Object to string

2006-01-19 Thread Michael Ströder
Dirk Hagemann wrote: > > What I want to do in the end is the following: I get some data from > Active Directory, then I create a SQL-statement including this data and > write this into the database. Which API and protocol are you using to access Active Directory? If you access it v

Re: Convert Active Directory Object to string

2006-01-18 Thread Dirk Hagemann
rns a string? What I want to do in the end is the following: I get some data from Active Directory, then I create a SQL-statement including this data and write this into the database. regards Dirk -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert Active Directory Object to string

2006-01-18 Thread Dirk Hagemann
Hi Fredrik! I think this will help me. I just have to do the same for danish encoding and may be some further encondings... Thanks! Dirk -- http://mail.python.org/mailman/listinfo/python-list

Convert Active Directory Object to string

2006-01-17 Thread Dirk Hagemann
Hi! When I receive data from Microsoft Active Directory it is an "ad_object" and has the type unicode. When I try to convert it to a string I get this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 26: ordinal not in range

Re: Convert Active Directory Object to string

2006-01-17 Thread Fredrik Lundh
Dirk Hagemann wrote: > When I receive data from Microsoft Active Directory it is an >"ad_object" and has the type unicode. When I try to convert it to a > string I get this error: > UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc&#

RE: Active Directory Modules?

2005-05-09 Thread Tim Golden
[Harlin Seritt] | Does anyone know if there are any Python Active Directory Modules out | there? I looked at LDAP module but there is no version for Python 2.4 | and it's support for Active Directory seems to be lacking a bit. Far from perfect, but functional. Uses pywin32.

Re: Active Directory Modules?

2005-05-08 Thread Michael Ströder
Harlin Seritt wrote: > Does anyone know if there are any Python Active Directory Modules out > there? You could use ADSI with python-win32. > I looked at LDAP module but there is no version for Python 2.4 Off course python-ldap works with Python 2.4. There are even Win32 binaries for P

Active Directory Modules?

2005-05-08 Thread Harlin Seritt
Does anyone know if there are any Python Active Directory Modules out there? I looked at LDAP module but there is no version for Python 2.4 and it's support for Active Directory seems to be lacking a bit. Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list