Samba/winbind 到 AD - 用户 ID 映射

Samba/winbind 到 AD - 用户 ID 映射

伙计们,我的 AD 的 UID 映射出现了问题。

我有 Centos 5.5 x64 盒和 AD witk 2k8 Windows Server。

问题在于用户名映射。例如:

getent passwd XF-DEV+prouser01:*:16777231:16777230:Prouserf Prousern:/home/prouser01:/bin/bash

我的 smb.conf 是

    log file = /var/log/samba/log.%m
    log level = 1
    workgroup = XF-DEV
    password server = xf-dev
    realm = XF-DEV
    security = DOMAIN
    wins server  = 10.105.59.98
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    winbind enum users = yes
    winbind enum groups = yes
    winbind separator = +
    template shell = /bin/bash
    winbind use default domain = no
    winbind enum users = yes
    winbind enum groups = yes
    template homedir = /home/%U
    domain master = no
    local master = yes
    preferred master = no
    dns proxy = no

我是否可以做su - prouser01而不做su - XF-DEV+prouser01

wbinfo -u和的输出wbinfo -g是相同的(我的意思是域在前面)。

答案1

解决方法是 winbind use default domain = no改为winbind use default domain = yes

prouser01:*:16777231:16777230:Prouserf Prousern:/home/prouser01:/bin/bash

相关内容