Get a group/user for a known GeneratedUID from local directory services:
dscl . -search /Users GeneratedUID 00052AE8-5000-6000-9007-666F6B666A66 dscl . -search /Groups GeneratedUID 00052AE8-5000-6000-9007-666F6B666A66
and from LDAP:
dscl /LDAPv3/ldap.company.com/ -search /Groups GeneratedUID 00052AE8-5000-6000-9007-666F6B666A66 dscl /LDAPv3/ldap.company.com/ -search /Users GeneratedUID 00052AE8-5000-6000-9007-666F6B666A66 ldapsearch -LLLx -b ou=group,dc=company,dc=com "apple-generateduid=00052AE8-5000-6000-9007-666F6B666A66" cn ldapsearch -LLLx -b ou=people,dc=company,dc=com "apple-generateduid=00052AE8-5000-6000-9007-666F6B666A66" uid
Get a GeneratedUID for a known user/group:
dscl localhost -read /Search/Users/auser | grep -m1 GeneratedUID | cut -c15- dscl localhost -read /Search/Groups/agroup | grep -m1 GeneratedUID | cut -c15- ldapsearch -LLLx -b ou=group,dc=company,dc=com "cn=agroup" apple-generateduid ldapsearch -LLLx -b ou=people,dc=company,dc=com "uid=auser" apple-generateduid
No comments:
Post a Comment