Lines 43-51
baseDN=baseConfig['ldap/base']
|
Link Here
|
---|
|
43 |
|
43 |
|
44 |
lo=ldap.open('localhost', 7389) |
44 |
lo=ldap.open('localhost', 7389) |
45 |
bindpw=open('/etc/ldap.secret').read() |
45 |
bindpw=open('/etc/ldap.secret').read() |
46 |
if bindpw[-1] == '\n': |
46 |
lo.simple_bind_s("cn=admin,"+baseDN, bindpw.strip('\n\r')) |
47 |
bindpw=bindpw[0:-1] |
|
|
48 |
lo.simple_bind_s("cn=admin,"+baseDN, bindpw) |
49 |
|
47 |
|
50 |
# check for dhcp records without matching computer object |
48 |
# check for dhcp records without matching computer object |
51 |
|
49 |
|