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
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
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
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
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.
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
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
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', '
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
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
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
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
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
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
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
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).
>
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
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
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.
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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!
--
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
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
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
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.
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
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
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
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
-- 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("
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
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
>
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
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
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
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
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
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
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
[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.
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
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
55 matches
Mail list logo