[no subject]

2009-05-12 Thread karlos barlos
hello to all i have been using this script to add users to my active directory structure i wise to make a loop in order for it to run for A large Number of Users can anyone give me some advice on the loop ?? import win32com,win32com.client def add_acct(location,account):      

Re: python command not working

2009-04-22 Thread karlos barlos
--- On Wed, 4/22/09, karlos barlos karlosbar...@yahoo.com wrote: From: karlos barlos karlosbar...@yahoo.com Subject: Re: python command not working To: Ben Finney ben+pyt...@benfinney.id.au Date: Wednesday, April 22, 2009, 3:05 AM look for envaroment   variables__   in system

[no subject]

2009-04-21 Thread karlos barlos
hello to everybody... having problem withe this code : dom = raw_input(The Domain name..:)   ad_user.Put('userPrincipalName',user['login']+'@(['dom']) but it wont change whay ? -- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2009-04-21 Thread karlos barlos
hello to everybody... having problem withe this code : dom = raw_input(The Domain name..:)   ad_user.Put('userPrincipalName',user['login']+'@(['dom']) but it wont change whay ? -- http://mail.python.org/mailman/listinfo/python-list

Re:

2009-04-21 Thread karlos barlos
ok sorry TIM I just took some piece of code  that ADDs users to AD CODE import win32com,win32com.client     def add_acct(location,account):   ad_obj=win32com.client.GetObject(location)   ad_user=ad_obj.Create('user','cn='+user['login'])  

[no subject]

2009-04-18 Thread karlos barlos
i have the following code :    elif choice == 3:     print all users list :     print\n     import active_directory     for user in active_directory.search (objectCategory='Person', objectClass='User'): print user     i want to write  the output of the code (

Re:

2009-04-18 Thread karlos barlos
--- On Sat, 4/18/09, Joe Riopel goo...@gmail.com wrote: From: Joe Riopel goo...@gmail.com Subject: Re: To: karlos barlos karlosbar...@yahoo.com Cc: python-list@python.org Date: Saturday, April 18, 2009, 12:01 PM On Sat, Apr 18, 2009 at 12:56 PM, karlos barlos karlosbar...@yahoo.com wrote

[no subject]

2009-04-18 Thread karlos barlos
hello to all !! given the code : elif choice == 3:     print all users list :     print\n     import active_directory     for user in active_directory.search (objectCategory='Person', objectClass='User'): print user that lists all active directory personal ... how