OMV 3.0 WebGui error users after entering domain

  • Help me.


    I introduced in the domain http://forum.openmediavault.or…-Directory-Domain-V2-pdf/


    wbinfo -u = OK
    wbinfo -g = OK


    error users WebGUI


    Ошибка #0:
    exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость' 2>&1' with exit code '2': ' in /usr/share/php/openmediavault/system/process.inc:175
    Stack trace:
    #0 /usr/share/php/openmediavault/system/user.inc(74): OMV\System\Process->execute(Array)
    #1 /usr/share/php/openmediavault/system/user.inc(229): OMV\System\User->getData('shadow')
    #2 /usr/share/openmediavault/engined/rpc/usermgmt.inc(118): OMV\System\User->getLastChanged()
    #3 /usr/share/openmediavault/engined/rpc/usermgmt.inc(145): OMVRpcServiceUserMgmt->getUserInfo('\xD0\xB3\xD0\xBE\xD1\x81\xD1\x82\xD1\x8C')
    #4 /usr/share/openmediavault/engined/rpc/usermgmt.inc(335): OMVRpcServiceUserMgmt->enumerateUsersByType('normal')
    #5 [internal function]: OMVRpcServiceUserMgmt->getUserList(Array, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('getUserList', Array, Array)
    #8 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('UserMgmt', 'getUserList', Array, Array, 1)
    #9 {main}


    smb.conf



    krb.conf




    nsswitch.conf





  • This is more interesting.

    net user Гость


    Имя пользователя Гость
    Полное имя
    Комментарий Встроенная учетная запись для доступа гостей к компьютеру или домену
    Комментарий пользователя
    Код страны или региона 000 (Стандартный системный)
    Учетная запись активна No
    Учетная запись просрочена Никогда


    Последний пароль задан 04.11.2016 20:44:07
    Действие пароля завершается Никогда
    Пароль допускает изменение 05.11.2016 20:44:07
    Требуется пароль No
    Пользователь может изменить пароль No


    Разрешенные рабочие станции Все
    Сценарий входа
    Конфигурация пользователя
    Основной каталог
    Последний вход Никогда


    Разрешенные часы входа Все


    Членство в локальных группах *Гости
    Членство в глобальных группах *Гости домена
    Команда выполнена успешно.

  • getent passwd


    conference:*:10155:10003:Конференц зал:/home/DC-TREND/conference:/bin/false
    gp-5:*:10217:10003:ГП-5:/home/DC-TREND/krk-gp-5:/bin/false


    all ok


    webgui error...(

  • Please execute


    Bash
    # export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость' 2>&1'
    # echo $?

    root@share:~# echo $?
    0
    root@share:~# export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость' 2>&1'
    >

  • I have exact same problem
    echo $?
    2


    running getent shadow returns only local users getent passwd and groups works


    fractal90: run echo after export


    For my setup problem is on account gosc. This is the same account in russian AD гость it means guest

  • root@share:~# export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость' 2>
    > ^C
    root@share:~# echo $?
    130

  • If you disable in /etc/nsswitch.conf winbind for passwd and restart winbind then www interface will work but without AD users. Only local.
    I narrow this to that getent shadow not listing ad users but getent passwd list ad users. www interface have problem with this because using both lists.


    Second day searching web for this and get nothing. I cannot get getent shadow to work. I think that this is samba/winbind bug.


    I also try on second omv to not use winbind and get ad users from sssd and realmd. And in this solution i have same thing. After add to sssd.conf enumerate = true i have ad users in getent passwd and no ad users in getent shadow


    Manual for reamld and sssd from here:
    http://www.alandmoore.com/blog…an-8-to-active-directory/


    Maybe the whole situation have source like this
    https://bugzilla.redhat.com/show_bug.cgi?id=751291

  • Arggh, sorry for getting crazy, but isn't it too difficult to execute a CLI command in the correct syntax?


    Bash
    $ export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость' 2>&1
    Code
    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; getent shadow 'гость'

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!