Sunday, December 8, 2019

Create System Account with FreeIPA

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

How Simple Does It Have to Be Before It’s Mine?

 Hi, Joy here, I'm tired.  I'm too tired to polish this.  However bare with me, the text below is *trying* to be me.  It's not l...