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

ldap-lint: possibly check callinkOid xor calnetUid #846

Open
abizer opened this issue Jan 6, 2019 · 1 comment
Open

ldap-lint: possibly check callinkOid xor calnetUid #846

abizer opened this issue Jan 6, 2019 · 1 comment

Comments

@abizer
Copy link
Member

abizer commented Jan 6, 2019

accounts probably should not have both of these specified for long periods of time. It may make sense for us to periodically confirm that no associations have been left by accident.

@daradib
Copy link
Member

daradib commented Jan 10, 2019

+1 perhaps something like:

ldapsearch -x -b ou=people,dc=ocf,dc=berkeley,dc=edu '(&(calnetuid=*)(callinkoid=*)(!(callinkoid=0)))'

Ideally, when callinkoid is zero, we'd always have a non-zero calnetuid (of the departmental sponsor, not someone who graduates!) to allow online password resets, but there are 209 such non-sorried group accounts without calnetuids:

ldapsearch -x -b ou=people,dc=ocf,dc=berkeley,dc=edu '(&(|(!(calnetuid=*))(calnetuid=0))(callinkoid=0)(!(loginshell=/opt/share/utils/bin/sorried)))'

@jvperrin jvperrin transferred this issue from ocf/utils Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants