Mar-14-2022, 06:46 AM
I have a python code. In my code I run this commands via os.system. How can i give sAMAccountName as a parameter?
I have a variable which is name. It can change in every search. I want to write name instead of the sAMAccount, and command will run according to it.
I have a variable which is name. It can change in every search. I want to write name instead of the sAMAccount, and command will run according to it.
ldapsearch -x -H "ldap://192.168.1.240:368" -D "[email protected]" -w "foo" -b "dc=my,dc=server" '(sAMAccountName=user1)'