Closed kiarn closed 3 years ago
Users and groups are added to printergroups as a simple membership (like samba-tool group addmembers, no extra sophomorix functionality to separate gruup admins and members).
so sophomorixMembers in GROUP is empty
You find the members of the group in the MEMBERS part of the hash, which you cut out in the ....... part
Ok, thanks, I wasn't aware that MEMBERLIST
and GROUP/sophomorixMembers
was 2 different things, so I have to code a separate handler for it in the webui.
I reopen this issue because I still have a problem with this. I get the memberlist within the MEMBERS
key, ok, but user and groups are mixed in this outpute, and I have to separate user from groups :
"MEMBERS" : {
"drucker1" : {
"kiar" : {
"sophomorixAdminClass" : "teachers",
"sophomorixRole" : "teacher",
"objectClass" : [
"top",
"person",
"organizationalPerson",
"user"
],
"givenName" : "Arnaud",
"memberOf" : [
"CN=role-teacher,OU=Groups,OU=GLOBAL,DC=unpeud,DC=info",
"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=internet,OU=Management,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=wifi,OU=Management,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=webfilter,OU=Management,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=intranet,OU=Management,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=printing,OU=Management,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=p_test,OU=Projects,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=10b,OU=10b,OU=Students,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=drucker1,OU=printer-groups,OU=Devices,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info"
],
"sophomorixQuota" : [
"linuxmuster-global:---:---:new:---:",
"default-school:---:---:new:---:"
],
"sn" : "Kientz",
"DN" : "CN=kiar,OU=Teachers,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"sAMAccountName" : "kiar"
},
"12a" : {
"givenName" : null,
"objectClass" : [
"top",
"group"
],
"sAMAccountName" : "12a",
"memberOf" : [
"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"CN=drucker1,OU=printer-groups,OU=Devices,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info"
],
"sophomorixQuota" : [
"linuxmuster-global:---:---:",
"default-school:---:---:"
],
"sn" : null,
"DN" : "CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info",
"sophomorixAdminClass" : null,
"sophomorixRole" : null
}
}
},
In order to differenciate a group, is it sufficient to test if sophomorixRole
( or sophomorixAdminClass
) is null ?
Yes users have a sophomorixRole groups have a sophomorixType
Hello,
Some member keys, e.g.
sophomorixMemberGroups
orsophomorixMembers
, are empty in asophomorix-query
Request for a groupprinter
, even if the specified group has member groups :As you can see, the member
kiar
and the group10a
do not appear in theGROUP
hash and that's the reason why the group details for a printer in theWebui
are incomplete.Thanks !