As i am new to python and ldap, please hep me convert the below shell code into python(version 2.6.6).
can some pls explain what this below shell code does and what is the use of -b option here
Shell code :
ldapsearch -x -h ldap.bbc.network.lcl -p 3477 -b "DC=bbc,DC=network,DC=lcl" -D "CN=LDAP\, Mine,OU=Resource Accounts,OU=Enterprise,DC=bbc,DC=network,DC=lcl" -w f2oH@LQ^911 "center=1234"