Module Expr Str Import alias alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd Str Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list ClassDef bases body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore TupleLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr ListComp BinOpAdd NameLoad Str comprehension NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr finalbody If UnaryOpNot NameLoad body If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str NameLoad Str Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr While Num body If CompareIsNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Import alias alias Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad Str NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults ListLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Num body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str ListLoad Str ListLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd ListLoad AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Str NameLoad Str NameLoad ListLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareNotEq Call AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Num BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num orelse If BoolOpAnd CompareEq NameLoad Str NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Pass orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Delete SubscriptDel NameLoad Index Num If BoolOpOr UnaryOpNot NameLoad CompareNotEq SubscriptLoad NameLoad Index Num Str body Raise Call NameLoad BinOpAdd Str Call NameLoad SubscriptLoad NameLoad Slice Num Delete SubscriptDel NameLoad Index Num If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Delete SubscriptDel NameLoad Index Num If BoolOpAnd NameLoad CompareNotEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareEq NameLoad Str body If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Raise Call NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Slice Num Assign NameStore ListLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assert CompareEq NameLoad ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Index Num Slice Num Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpAdd Str Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Index Num Slice Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad BinOpAdd Str Call AttributeLoad NameLoad attr Str Str BinOpAdd Str NameLoad BinOpAdd Str NameLoad Str BinOpAdd Str Call AttributeLoad NameLoad attr Str BinOpAdd Str NameLoad Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr ListLoad Str body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Print Str Expr Call AttributeLoad NameLoad attr Print Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Print BinOpAdd Str NameLoad For TupleStore NameStore NameStore NameLoad body Print BinOpAdd BinOpAdd NameLoad Str NameLoad Print Str Print Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Utilities for starting up a test slapd server 
and talking to it with ldapsearch/ldapadd.
 N/A sys os socket time subprocess logging N/A _log N/A N/A logging getLogger slapd quote N/A N/A s N/A N/A N/A Quotes the '"' and '' characters in a string and surrounds with "..." N/A N/A N/A " N/A N/A N/A N/A s replace \ \\ replace " \" " N/A mkdirs N/A N/A path N/A N/A N/A Creates the directory path unless it already exists N/A N/A N/A N/A os access N/A N/A N/A os path join path N/A N/A os path curdir N/A os F_OK N/A N/A N/A N/A _log debug creating temp directory %s path N/A N/A N/A os mkdir path N/A path N/A delete_directory_content N/A N/A path N/A N/A N/A N/A dirpath dirnames filenames N/A N/A os walk path topdown False N/A N/A n filenames N/A N/A N/A N/A _log info remove %s N/A N/A N/A os path join dirpath n N/A N/A N/A os remove N/A N/A N/A os path join dirpath n N/A n dirnames N/A N/A N/A N/A _log info rmdir %s N/A N/A N/A os path join dirpath n N/A N/A N/A os rmdir N/A N/A N/A os path join dirpath n N/A N/A LOCALHOST 127.0.0.1 find_available_tcp_port N/A N/A host N/A LOCALHOST N/A N/A s N/A N/A socket socket N/A N/A N/A s bind N/A host 0 N/A port N/A N/A N/A s getsockname N/A 1 N/A N/A N/A s close N/A N/A N/A _log info Found available port %d port N/A port N/A Slapd N/A N/A N/A 
    Controller class for a slapd instance, OpenLDAP's server.

    This class creates a temporary data store for slapd, runs it
    on a private port, and initialises it with a top-level dc and
    the root user.

    When a reference to an instance of this class is lost, the slapd
    server is shut down.
     N/A _log N/A N/A logging getLogger Slapd N/A PATH_TMPDIR /var/tmp/python-ldap-test N/A PATH_SBINDIR /usr/sbin N/A PATH_BINDIR /usr/bin N/A PATH_SCHEMA_CORE /etc/ldap/schema/core.schema N/A PATH_LDAPADD N/A N/A N/A os path join PATH_BINDIR ldapadd N/A PATH_LDAPSEARCH N/A N/A N/A os path join PATH_BINDIR ldapsearch N/A PATH_SLAPD N/A N/A N/A os path join PATH_SBINDIR slapd N/A PATH_SLAPTEST N/A N/A N/A os path join PATH_SBINDIR slaptest check_paths N/A N/A cls N/A N/A N/A 
        Checks that the configured executable paths look valid.
        If they don't, then logs warning messages (not errors).
         N/A N/A name path N/A N/A slapd N/A cls PATH_SLAPD N/A ldapadd N/A cls PATH_LDAPADD N/A ldapsearch N/A cls PATH_LDAPSEARCH N/A N/A N/A N/A N/A cls _log debug checking %s executable at %s name path N/A N/A N/A N/A os access path N/A os X_OK N/A N/A N/A N/A N/A cls _log warn cannot find %s executable at %s name path N/A N/A check_paths N/A classmethod check_paths __init__ N/A N/A self N/A N/A N/A N/A self _config N/A N/A N/A self _proc None N/A N/A self _port 0 N/A N/A self _tmpdir N/A self PATH_TMPDIR N/A N/A self _dn_suffix dc=python-ldap,dc=org N/A N/A self _root_cn Manager N/A N/A self _root_password password N/A N/A self _slapd_debug_level 0 N/A set_port N/A N/A self port N/A N/A N/A N/A self _port port N/A set_dn_suffix N/A N/A self dn N/A N/A N/A N/A self _dn_suffix dn N/A set_root_cn N/A N/A self cn N/A N/A N/A N/A self _root_cn cn N/A set_root_password N/A N/A self pw N/A N/A N/A N/A self _root_password pw N/A set_tmpdir N/A N/A self path N/A N/A N/A N/A self _tmpdir path N/A set_slapd_debug_level N/A N/A self level N/A N/A N/A N/A self _slapd_debug_level level N/A set_debug N/A N/A self N/A N/A N/A N/A N/A N/A self _log setLevel N/A logging DEBUG N/A N/A N/A self set_slapd_debug_level Any N/A get_url N/A N/A self N/A N/A N/A N/A ldap://%s:%d/ N/A N/A self get_address N/A get_address N/A N/A self N/A N/A N/A N/A N/A self _port 0 N/A N/A N/A self _port N/A find_available_tcp_port LOCALHOST N/A N/A LOCALHOST N/A self _port N/A get_dn_suffix N/A N/A self N/A N/A N/A N/A self _dn_suffix N/A get_root_dn N/A N/A self N/A N/A N/A N/A N/A N/A cn= N/A self _root_cn , N/A N/A self get_dn_suffix N/A get_root_password N/A N/A self N/A N/A N/A N/A self _root_password N/A get_tmpdir N/A N/A self N/A N/A N/A N/A self _tmpdir N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self stop N/A configure N/A N/A self cfg N/A N/A N/A 
        Appends slapd.conf configuration lines to cfg.
        Also re-initializes any backing storage.
        Feel free to subclass and override this method.
         N/A N/A N/A cfg append N/A include  N/A quote N/A self PATH_SCHEMA_CORE N/A N/A N/A cfg append allow bind_v2 N/A ldif_dir N/A mkdirs N/A N/A N/A os path join N/A N/A self get_tmpdir ldif-data N/A N/A delete_directory_content ldif_dir N/A N/A N/A cfg append database ldif N/A N/A N/A cfg append N/A directory  N/A quote ldif_dir N/A N/A N/A cfg append N/A suffix  N/A quote N/A N/A self get_dn_suffix N/A N/A N/A cfg append N/A rootdn  N/A quote N/A N/A self get_root_dn N/A N/A N/A cfg append N/A rootpw  N/A quote N/A N/A self get_root_password N/A _write_config N/A N/A self N/A N/A N/A Writes the slapd.conf file out, and returns the path to it. N/A path N/A N/A N/A os path join N/A self _tmpdir slapd.conf N/A ldif_dir N/A mkdirs N/A self _tmpdir N/A N/A N/A os access path N/A os F_OK N/A N/A N/A N/A N/A self _log debug deleting existing %s path N/A N/A N/A os remove path N/A N/A N/A N/A self _log debug writing config to %s path N/A N/A N/A N/A file path w writelines N/A N/A line N/A line N/A self _config N/A path N/A start N/A N/A self N/A N/A N/A 
        Starts the slapd server process running, and waits for it to come up. 
         N/A N/A N/A self _proc None N/A N/A ok False N/A config_path None N/A N/A N/A N/A N/A self configure N/A self _config N/A N/A N/A self _test_configuration N/A N/A N/A self _start_slapd N/A N/A N/A self _wait_for_slapd N/A ok True N/A N/A N/A N/A self _log debug slapd ready at %s N/A N/A self get_url N/A N/A N/A self started N/A N/A N/A ok N/A N/A config_path N/A N/A N/A N/A N/A N/A os remove config_path N/A N/A N/A N/A os error N/A N/A N/A N/A self _proc N/A N/A N/A N/A self stop N/A _start_slapd N/A N/A self N/A N/A N/A config_path N/A N/A self _write_config N/A N/A N/A N/A self _log info starting slapd N/A N/A self _proc N/A N/A subprocess Popen N/A N/A self PATH_SLAPD -f config_path -h N/A N/A self get_url -d N/A str N/A self _slapd_debug_level N/A N/A self _proc_config config_path N/A _wait_for_slapd N/A N/A self N/A N/A N/A s N/A N/A socket socket N/A 1 N/A N/A N/A N/A N/A N/A self _proc poll None N/A N/A N/A N/A self _stopped N/A N/A RuntimeError slapd exited before opening port N/A N/A N/A N/A N/A N/A self _log debug Connecting to %s N/A repr N/A N/A self get_address N/A N/A N/A s connect N/A N/A self get_address N/A N/A N/A s close N/A N/A N/A N/A N/A socket error N/A N/A N/A N/A time sleep 1 N/A stop N/A N/A self N/A N/A N/A Stops the slapd server, and waits for it to terminate N/A N/A N/A self _proc None N/A N/A N/A N/A N/A self _log debug stopping slapd N/A N/A hasattr N/A self _proc terminate N/A N/A N/A N/A N/A self _proc terminate N/A N/A posix signal N/A N/A N/A posix kill N/A N/A self _proc pid N/A signal SIGHUP N/A N/A N/A self wait N/A restart N/A N/A self N/A N/A N/A 
        Restarts the slapd server; ERASING previous content.
        Starts the server even it if isn't already running.
         N/A N/A N/A self stop N/A N/A N/A self start N/A wait N/A N/A self N/A N/A N/A Waits for the slapd process to terminate by itself. N/A N/A self _proc N/A N/A N/A N/A N/A self _proc wait N/A N/A N/A self _stopped N/A _stopped N/A N/A self N/A N/A N/A Called when the slapd server is known to have terminated N/A N/A N/A self _proc None N/A N/A N/A N/A N/A self _log info slapd terminated N/A N/A self _proc None N/A N/A N/A N/A N/A os remove N/A self _proc_config N/A N/A N/A N/A os error N/A N/A N/A N/A N/A self _log debug could not remove %s N/A self _proc_config N/A _test_configuration N/A N/A self N/A N/A N/A config_path N/A N/A self _write_config N/A N/A N/A N/A N/A N/A self _log debug testing configuration N/A verboseflag -Q N/A N/A N/A N/A self _log isEnabledFor N/A logging DEBUG N/A N/A verboseflag -v N/A p N/A N/A subprocess Popen N/A N/A self PATH_SLAPTEST verboseflag -f config_path N/A N/A N/A N/A p wait 0 N/A N/A N/A RuntimeError configuration test failed N/A N/A N/A N/A self _log debug configuration seems ok N/A N/A N/A N/A os remove config_path N/A ldapadd N/A N/A self ldif extra_args N/A N/A N/A N/A Runs ldapadd on this slapd instance, passing it the ldif content N/A N/A N/A N/A self _log debug adding %s N/A repr ldif N/A p N/A N/A subprocess Popen N/A N/A N/A self PATH_LDAPADD -x -D N/A N/A self get_root_dn -w N/A N/A self get_root_password -H N/A N/A self get_url extra_args stdin N/A subprocess PIPE stdout N/A subprocess PIPE N/A N/A N/A p communicate ldif N/A N/A N/A N/A p wait 0 N/A N/A N/A RuntimeError ldapadd process failed N/A ldapsearch N/A N/A self base filter attrs scope extra_args N/A None (objectClass=*) N/A sub N/A N/A N/A N/A base None N/A N/A base N/A N/A self get_dn_suffix N/A N/A N/A N/A self _log debug ldapsearch filter=%s N/A repr filter N/A p N/A N/A subprocess Popen N/A N/A N/A N/A N/A self PATH_LDAPSEARCH -x -D N/A N/A self get_root_dn -w N/A N/A self get_root_password -H N/A N/A self get_url -b base -s scope -LL extra_args N/A filter attrs stdout N/A subprocess PIPE N/A output N/A N/A N/A p communicate N/A 0 N/A N/A N/A N/A p wait 0 N/A N/A N/A RuntimeError ldapadd process failed N/A lines N/A N/A l N/A N/A output split N/A N/A N/A N/A l startswith N/A N/A N/A lines N/A -1 N/A N/A lines N/A -1 N/A l N/A 1 N/A N/A N/A N/A l lines N/A N/A lines N/A -1 N/A N/A N/A N/A N/A N/A lines append l N/A lines N/A l N/A l lines N/A N/A N/A l startswith # N/A N/A lines N/A N/A lines N/A 0 N/A N/A N/A lines N/A 0 N/A N/A N/A lines N/A N/A lines N/A 0 version: 1 N/A N/A N/A RuntimeError N/A expected 'version: 1', got  N/A repr N/A lines N/A 1 N/A N/A lines N/A 0 N/A N/A lines N/A N/A lines N/A 0 N/A N/A N/A lines N/A 0 N/A N/A lines N/A N/A lines N/A -1 N/A N/A N/A N/A lines append N/A objects N/A N/A obj N/A N/A line lines N/A N/A N/A line N/A N/A N/A N/A N/A obj N/A 0 N/A 0 dn N/A N/A N/A RuntimeError first line not dn N/A repr obj N/A N/A N/A objects append N/A N/A N/A obj N/A 0 N/A 1 N/A obj N/A 1 N/A obj N/A N/A N/A N/A attr value N/A N/A line split : 2 N/A N/A N/A value startswith :  N/A N/A value N/A N/A base64 decodestring N/A value N/A 2 N/A N/A N/A N/A value startswith N/A N/A value N/A value N/A 1 N/A N/A N/A RuntimeError N/A bad line:  N/A repr line N/A N/A N/A obj append N/A attr value N/A N/A obj N/A N/A objects N/A started N/A N/A self N/A N/A N/A 
        This method is called when the LDAP server has started up and is empty.
        By default, this method adds the two initial objects,
        the domain object and the root user object.
         N/A N/A N/A N/A N/A self get_dn_suffix startswith dc= N/A suffix_dc N/A N/A N/A N/A N/A N/A self get_dn_suffix split , N/A 0 N/A 3 N/A N/A N/A N/A N/A self get_root_dn startswith cn= N/A N/A N/A N/A N/A self get_root_dn endswith N/A , N/A N/A self get_dn_suffix N/A root_cn N/A N/A N/A N/A N/A N/A self get_root_dn split , N/A 0 N/A 3 N/A N/A N/A N/A self _log debug adding %s and %s N/A N/A self get_dn_suffix N/A N/A self get_root_dn N/A N/A N/A self ldapadd N/A N/A join N/A N/A dn:  N/A N/A self get_dn_suffix objectClass: dcObject objectClass: organization N/A dc:  suffix_dc N/A o:  suffix_dc N/A dn:  N/A N/A self get_root_dn objectClass: organizationalRole N/A cn:  root_cn N/A N/A N/A N/A N/A Slapd check_paths N/A N/A N/A __name__ __main__ N/A N/A sys argv N/A run N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A slapd N/A Slapd N/A Starting slapd... N/A N/A N/A slapd start N/A Contents of LDAP server follow:
 N/A N/A dn attrs N/A N/A slapd ldapsearch N/A N/A N/A dn:  dn N/A N/A name val attrs N/A N/A N/A N/A name :  val N/A N/A N/A N/A slapd get_url N/A N/A N/A slapd wait