Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using service instead of user #11

Open
gerardedo opened this issue Mar 27, 2019 · 4 comments
Open

Using service instead of user #11

gerardedo opened this issue Mar 27, 2019 · 4 comments

Comments

@gerardedo
Copy link

Currently it's using an ipa user to reset password, instead of an ipa service.

@gerardedo
Copy link
Author

Consider:

ipa role-add "Self Password Reset";
ipa role-add-privilege "Self Password Reset" --privileges="Modify Users and Reset passwords";
ipa role-add-privilege "Self Password Reset" --privileges="Password Policy Readers";
ipa service-add 'ldap-passwd-reset/domain.tld';
ipa role-add-member 'Self Password Reset' --services='ldap-passwd-reset/domain.tld';

Or create a permission for Type User with krbprincipalkey, userpassword and krbpasswordexpiration, and assign it to the role

ipa-getkeytab -p 'ldap-passwd-reset/domain.told' -s domain.told -k /opt/IPAPasswordReset/ldap-passwd-reset.keytab;
kinit -t /opt/IPAPasswordReset/ldap-passwd-reset.keytab -k ldap-passwd-reset/domain.told;
klist; ldapwhoami -Y GSSAPI;

Then use in as follows in settings.py:

LDAP_USER = "ldap-passwd-reset/domain.tld
KEYTAB_PATH = "/opt/IPAPasswordReset/ldap-passwd-reset.keytab"

@larrabee
Copy link
Owner

Thank you for feedback.
What is profit of using service instead of user?

@gerardedo
Copy link
Author

Hi,

Well, it's conceptual, from my point of view a user type account is for real users, and services accounts are for machines and services. In this case, "ldap-passwd-reset" is a service.

Anyway, thanks for your nice work!

@fsadoon
Copy link

fsadoon commented Feb 11, 2020

what about password policies ? will it be followed if we have it as a services,
BTW it isn't happening while it is normal user so .. u know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants