Creating a system account with FreeIPA
This would be suitable for like an ldap verification. It has almost 0 privilege. LDAP should die in fire IMO.
ldapmodify -x -D 'cn=Directory Manager' -y password <<EOF
dn: uid=ldap,cn=sysaccounts,cn=etc,dc=deepthot,dc=aa
changetype: add
objectclass: account
objectclass: simplesecurityobject
uid: ldap
userPassword: $PASSWORD
passwordExpirationTime: 20380119031407Z
nsIdleTimeout: 0
EOF
The -y password is referring to a file that contains the entire password (don’t put a lineend in the file). $PASSWORD is the literal password.
If you wanted to give it more permissions you could add a memberOf to a group that has more permissions or whatever.
No comments:
Post a Comment