On Fri, Apr 25, 2008 at 9:39 AM, Deepti Jawalkar <
dee...@google.com> wrote:
I wanted to use your module python-AD to connect and work with AD from my linux box but after installing all the dependencies like (python ldap,dnspyhton,PLY,MITkerberos,py library) when I try doing an "import ad" or do "from ad import Client, Creds, activate" I get an error like this :
>>> from ad import Client,Creds,Locator,activate
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/ad/__init__.py", line 12, in ?
from ad.core.client import Client
File "/usr/lib/python2.4/site-packages/ad/core/client.py", line 15, in ?
import ldap.controls
ImportError: No module named controls
>>>
[...]
Any particular reason for such a behavior or I haven't set up the environment properly ?
What version of python-ldap are you using? I am using version 2.3.1 on Fedora 9 and it works allright. Try a "import ldap.controls" from a Python prompt and see what that does.
Also is it possible to move accounts in AD,remove and add users from groupmemberships from this package.(these are few of the main tasks that i hope to carry out with this module)
At the moment renaming objects is not possible with python-ad. I had a quick look and both OpenLDAP and python-ldap support that operation, so it would not be hard to add it. I will have a look at it.
Adding users is supported. See tutorial #5 on the home page.
I was going through your documentation and from wat I have learnt from it is that we can program in such a way that the script can pull logged on user credentials and run on those credentials is it possible? Did I get it rgt.
Yes, call Creds.load() to load the OS credentials.
Regards,
Geert