Beiträge von hortimech

    I asked for help and impressed that this wasn't a Samba problem, but the only answers I got, implied it was a Samba problem, it isn't.


    I ran the code and got this:


    Array
    (
    [name] => rowland
    [passwd] => *
    [uid] => 10000
    [gid] => 10000
    [gecos] => Rowland Penny
    [dir] => /home/rowland
    [shell] => /bin/bash
    )
    Array
    (
    [name] => rowland
    [passwd] => *
    [uid] => 10000
    [gid] => 10000
    [gecos] => Rowland Penny
    [dir] => /home/rowland
    [shell] => /bin/bash
    )


    My gut feeling is that there is something in your code that doesn't like winbind, so, as I will not use sssd & realmd, please accept my profound apology for daring to ask for help and I will delete my OMV install and not bother you again.

    Everything from the Samba and OS side works


    wbinfo -u shows all domain users
    wbinfo -g shows all domain groups
    getent passwd shows ALL users
    getent group shows ALL groups


    There is nothing wrong from the Debian/Samba side of things. I have looked in all the logs and can find no reason for the lack of users & groups in he OMV web UI.
    From what I have found, it looks like the web UI uses getent to list the users and groups, if so, why doesn't it work for me ? Could I have broken something, if so, What and how ?


    That smb.conf would not work, the ranges overlap, also the workgroup is not set, The programs 'sssd' and 'realmd' have nothing to do with Samba, they are produced by red-hat, they do nothing that winbind cannot do. Setting up winbind correctly is not hard.


    Can I repeat that this is not a Samba problem, 'getent' works, all users & groups are displayed on the command line in a ssh terminal, but the web UI shows no users or groups


    Can I also point out that I really know about Samba, it is likely I know more about Samba than anybody else on this forum, is anybody else a member of the Samba team ?


    No, I thought not ;)


    Now, why doesn't OMV4 show my users & groups ?


    Rowland Penny
    Samba team

    They are all there (apart from the first one and the default setting is okay)


    This is not a Samba problem.
    If I run 'getent passwd' on the CLI. I get ALL users, local and domain
    If I run 'getent group', I get ALL groups, local and domain


    smb.conf is set up correctly, which is more than I can say for the default OMV smb.conf


    If I go to the web ui and try to list users or groups I get nothing


    Please believe me when I say Samba is set up correctly.

    Do you mean as in:


    rowland:*:10000:10000:Rowland Penny:/home/rowland:/bin/bash
    (cut & pasted from the OMC CLI)


    If so, yes.


    Not that it should make any difference, it is running as a Unix Domain member, so the user range comes from AD.
    NOTE: I am not using sssd, I am using the winbind 'ad' backend.

    Hi, I have installed OMV4 on a raspberrypi3, I have then installed Samba and configured it as a Unix domain member. From the CLI this is working, 'getent passwd' returns ALL users, but when I go to the OMV Web UI -> Access Rights Management -> User, I do not get any users.


    I think the code for getting the users is here:


    https://github.com/openmediava…ediavault/system/user.inc


    /**
    * Enumerate user names.
    * @return An array of user names.
    * @throw \OMV\ExecException
    */
    public static function getUsers() {
    $cmd = new \OMV\System\Process("getent", "passwd");
    $cmd->setRedirect2to1();
    $cmd->execute($output);
    // Parse command output:
    // proftpd:x:109:65534::/var/run/proftpd:/bin/false
    // ftp:x:110:65534::/home/ftp:/bin/false
    // openmediavault:x:999:999::/home/openmediavault:/bin/sh
    // admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin
    // nut:x:111:114::/var/lib/nut:/bin/false
    // test:x:1001:100:sdfds:/home/test:/bin/dash
    $list = [];
    foreach ($output as $outputv) {
    $data = explode(":", $outputv);
    if (TRUE === empty($data))
    continue;
    $list[] = $data[0]; // User name
    }
    return $list;
    }
    }


    This appears to be using 'getent passwd', so why do I get the users at the CLI, but not in th Web UI ?