Created
May 15, 2024 06:53
-
-
Save ZiTAL/9d920a21a7a5c0e4d9d438349a2f0f92 to your computer and use it in GitHub Desktop.
linux: ldap microsoft samaccountname example
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
#!/bin/bash | |
HOST="ldap.zital.eus" | |
BASEDN="dc=zital,dc=lan" | |
USER="zital@zital.eus" | |
PASSWD="12345" | |
ldapsearch -x -H ldap://${HOST} -b ${BASEDN} -D ${USER} -w ${PASSWD} "(samaccountname=${USER})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment