-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unused __doc__ string related symbols.
- Loading branch information
stroeder
committed
Mar 17, 2003
1 parent
5ee9476
commit 93a3c8f
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
import ldap | ||
|
||
host="localhost:1390" | ||
|
||
print "API info:",ldap.get_option(ldap.OPT_API_INFO) | ||
print "debug level:",ldap.get_option(ldap.OPT_DEBUG_LEVEL) | ||
#print "Setting debug level to 255..." | ||
#ldap.set_option(ldap.OPT_DEBUG_LEVEL,255) | ||
#print "debug level:",ldap.get_option(ldap.OPT_DEBUG_LEVEL) | ||
print "default size limit:",ldap.get_option(ldap.OPT_SIZELIMIT) | ||
print "Setting default size limit to 10..." | ||
ldap.set_option(ldap.OPT_SIZELIMIT,10) | ||
print "default size limit:",ldap.get_option(ldap.OPT_SIZELIMIT) | ||
print "Creating connection to",host,"..." | ||
l=ldap.init(host) | ||
print "size limit:",l.get_option(ldap.OPT_SIZELIMIT) | ||
print "Setting connection size limit to 20..." | ||
l.set_option(ldap.OPT_SIZELIMIT,20) | ||
print "size limit:",l.get_option(ldap.OPT_SIZELIMIT) | ||
#print "Setting time limit to 60 secs..." | ||
l.set_option(ldap.OPT_TIMELIMIT,60) | ||
#print "time limit:",l.get_option(ldap.OPT_TIMELIMIT) | ||
print "Binding..." | ||
l.simple_bind_s("","") | ||
|
||
|
||
|
||
|