linuxmuster / sophomorix4

sophomorix for Samba 4
GNU General Public License v3.0
7 stars 7 forks source link

Show admin and member in sophomorix-group #131

Closed kiarn closed 3 years ago

kiarn commented 3 years ago

Hello,

I have one member in a printer group :

$ sophomorix-query --group-members --group-full --sam drucker1 -j
OK: SophomorixSchemaVersion 1 matches required Version 1
# JSON-begin
{
   "MEMBERS" : {
      "drucker1" : {
         "kiar" : {
...}
   },
   "COUNTERS" : {
...
      "USER" : [],
      "COMPUTER" : [],
      "MEMBERLIST" : {
         "drucker1" : [
            "kiar"
         ]
...
}
# JSON-end

But this result doesn't appear with the following command :

sophomorix-group -i --group drucker1
#####################################################################
printer 1/1: drucker1 in school default-school
CN=drucker1,OU=printer-groups,OU=Devices,OU=default-school,OU=SCHOOLS,DC=unpeud,DC=info
#####################################################################
                       cn: drucker1                                
...                               
+----------------+----------------+---------------------+---------------------+
| Admins:        | Members:       | AdminGroups:        | MemberGroups:       |
+----------------+----------------+---------------------+---------------------+
|                |                |                     |                     |
+----------------+----------------+---------------------+---------------------+
| Admins:      0 | Members:     0 | AdminGroups:      0 | MemberGroups:     0 |
+----------------+----------------+---------------------+---------------------+

Is that normal or do I miss something ?

sophomorix-samba version 3.81.6-1

Arnaud

jeffbeck commented 3 years ago

sophomorix-query --sam looks for any sAMAcountName

sophomorix-group shows/filters only sophomorix groups (no classes, rooms, ...)

To show devices: sophomorix-device -i --device

To show rooms: sophomorix-device -i --room

kiarn commented 3 years ago

Sorry if my question may be stupid, but I thought drucker1 was a group. By example, if I want to manage membership (add class to group printer), I have to do :

sophomorix-group --addmembergroups 10a --group drucker1

We are always using sophomorix-query in the Webui to get the memberships, but does it mean that this table is always empty ?

+----------------+----------------+---------------------+---------------------+
| Admins:        | Members:       | AdminGroups:        | MemberGroups:       |
+----------------+----------------+---------------------+---------------------+
|                |                |                     |                     |
+----------------+----------------+---------------------+---------------------+
| Admins:      0 | Members:     0 | AdminGroups:      0 | MemberGroups:     0 |
+----------------+----------------+---------------------+---------------------+

I'm just asking to understand what this table mean.