Ldap Extended Operation python

B

Benny Fallica

Hello there,

what would be the python implementation for this line in Java:


java.util.Hashtable environment = LdapHelper.getEnvironment(url, true);
LdapContext ldapContext = new InitialLdapContext(environment, null);
Response resp = (Response) ldapContext.extendedOperation(new Request())
how to deal with extended operations in python?

thanks for your help!
 
M

Michael Ströder

Benny said:
Hello there,

what would be the python implementation for this line in Java:


java.util.Hashtable environment = LdapHelper.getEnvironment(url, true);
LdapContext ldapContext = new InitialLdapContext(environment, null);
Response resp = (Response) ldapContext.extendedOperation(new Request())
how to deal with extended operations in python?

Which LDAP extended operation do you want to use?

In python-ldap the following ext. ops are already implemented:
http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.LDAPObject.whoami_s
http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.LDAPObject.passwd

There's no generic interface for ext. ops. yet. Feel free to contribute
something like this.

Ciao, Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,299
Messages
2,571,544
Members
48,295
Latest member
Adriene271

Latest Threads

Top