[Samba] uid/gid not being used when logging into RHEL -> Windows Server 2012 Active Directory

John Mancuso jkmancuso at gmail.com
Thu Jan 31 10:17:00 MST 2013


update:

Looks like it's getting the proper shell and gid but not getting the proper
uid. Its just getting a number starting at 800 instead of the actual number.

Also when I output via wbinfo it is incorrect


[2013/02/01 00:51:38.469672,  1]
../librpc/ndr/ndr.c:284(ndr_print_function_debug)
       wbint_QueryUser: struct wbint_QueryUser
          out: struct wbint_QueryUser
              info                     : *
                  info: struct wbint_userinfo
                      acct_name                : *
                          acct_name                : 'test14'
                      full_name                : *
                          full_name                : 'test14'
                      homedir                  : *
                          homedir                  : '/home/test14'
                      shell                    : *
                          shell                    : '/bin/csh'
                      primary_gid              : 0x000000000000032a (810)
                      user_sid                 :
S-1-5-21-1876082661-3791542598-1067495821-2113
                      group_sid                :
S-1-5-21-1876082661-3791542598-1067495821-513
              result                   : NT_STATUS_OK
[2013/02/01 00:51:38.470144, 10] winbindd/wb_sid2uid.c:56(wb_sid2uid_send)
  idmap_cache_find_sid2uid found 800
[2013/02/01 00:51:38.470217, 10] winbindd/wb_sid2gid.c:57(wb_sid2gid_send)
  idmap_cache_find_sid2gid found 800
[2013/02/01 00:51:38.470293, 10] winbindd/winbindd.c:678(wb_request_done)
  wb_request_done[15762:GETPWUID]: NT_STATUS_OK
[2013/02/01 00:51:38.470475, 10]
winbindd/winbindd.c:739(winbind_client_response_written)
  winbind_client_response_written[15762:GETPWUID]: delivered response to
client
[2013/02/01 00:51:38.470698, 10] winbindd/winbindd.c:616(process_request)
  process_request: Handling async request 6544:GETPWUID


root at test:~ · 01:08 AM Fri Feb 01 ·
!842 # wbinfo -i test14
test14:*:800:800:test14:/home/test14:/bin/bash


[global]
   workgroup = mycompany
   password server = pekdc01.mycompany.net
   realm = MYCOMPANY.NET
   security = domain
winbind nss info = rfc2307
#idmap config * : backend = ad #THIS PREVENTS WINBIND FROM CONNECTING
idmap config * : range = 800-900000
idmap config * : schema_mode = rfc2307
template shell = /bin/bash
   winbind use default domain = true
   winbind offline logon = false

HELP- pulling my hair out over this! Thanks


More information about the samba mailing list