[python-ldap] ldap operation

Felipe_G0NZÁLEZ_SANTIAG0 fgonzalez at uci.cu
Fri Sep 30 16:22:33 EDT 2016


Hello: 
I 'm new using python-ldap. I'm cannot run any LDAP operation. I work with a Samba4 AD. 
This is my code: 
import ldap 
import ldap.modlist as modlist 

l.ldap(ldap://127.0.0.1) 
l.protocol_version=ldap.VERSION3 
l.simple_bind=("CN=Administrator,CN=Users,DC=example,DC=com", "mypassw0rd") 
#trying to delete a user 
dn= "CN=pepe,CN=Users,DC=example,DC=com" 
l.delete(dn) 
l.unbind() 

And then user pepe persist, I mean wasn' t deleted. 

Any idea? 
THANKS 

___________________________________________ 
Felipe_ González_Santiago 



The University of Informatics Sciences invites you to participate in the Scientific Conference UCIENCIA 2016, [extended] deadline: september 30th.
Conferencia Científica UCIENCIA 2016, plazo de envío de trabajos hasta el 30 de septiembre.
http://uciencia.eventos.uci.cu/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160930/1ae3e6f6/attachment.html>


More information about the python-ldap mailing list