Created
April 29, 2020 16:35
-
-
Save davidcueva/079d53e63e485605d1c9d3b44eaf20a7 to your computer and use it in GitHub Desktop.
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
export USER_ID=mary | |
printf '%s\n'\ | |
"# entry for user ${USER_ID}"\ | |
"dn: uid=${USER_ID},ou=people,dc=hadoop,dc=apache,dc=org"\ | |
"objectclass:top"\ | |
"objectclass:person"\ | |
"objectclass:organizationalPerson"\ | |
"objectclass:inetOrgPerson"\ | |
"cn: ${USER_ID}"\ | |
"sn: ${USER_ID}"\ | |
"uid: ${USER_ID}"\ | |
"userPassword:${USER_ID}-password"\ | |
> new-user.ldif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment