Estoy intentando realizar una consulta, via Python, a Novell.
Código:
Pero me arroja error de Autenticacion. Lo raro es que llego a hacer el Bind...import sys import ldap try: l = ldap.open("172.17.45.60") l.protocol_version = ldap.VERSION3 username = "cn=XXXX, ou=XXX, ou=XXX, o=XX" password = "XXXX*" l.simple_bind(username, password) print ("\n:::::: CONEXION LDAP EXITOSA ::::::\n") except ldap.LDAPError, e: print e baseDN = "ou=XXX, ou=XXX, o=XX" searchScope = ldap.SCOPE_SUBTREE searchFilter = "cn=nombreABuscar" retrieveAttributes = None try: ldap_result_id = l.search(baseDN, searchScope, searchFilter, retrieveAttributes) result_set = [] while 1: result_type, result_data = l.result(ldap_result_id, 0) if (result_data == []): break else: if result_type == ldap.RES_SEARCH_ENTRY: result_set.append(result_data) print result_set except ldap.LDAPError, e: print e
[url=http://subefotos.com/ver/?3d1a1b1e0f671e7301c63b46dba9084ao.png][img]http://thumbs.subefotos.com/3d1a1b1e0f671e7301c63b46dba9084ao.jpg[/img][/url]
Alguna idea?
Gracias!!!