Hello Sumit,
Am Friday 06 May 2016, 13:50:12 schrieb Sumit Bose:
On Fri, May 06, 2016 at 11:10:15AM +0200, Stefan Fuhrmann wrote:
> Hello Sumit,
>
> Am Friday 06 May 2016, 10:18:56 schrieb Sumit Bose:
> > this looks ok. Can you check if a SID can be translated to a proper name
> >
> > by calling:
> > wbinfo -s S-1-5-21-.........
>
> wbinfo isnt working. As I wrote there is no winbind installed:
> "failed to call wbcLookupSid: WBC_ERR_UNKNOWN_FAILURE"
With /usr/lib64/sssd/modules/libwbclient.so.0.12.0 wbinfo should use
SSSD to get the SID resolved.
Please set debug_level=10 in the [nss] section of sssd.conf, restart
SSSD, run the wbinfo command again and check if you see a request for
the SID in sssd_nss.log.
(Fri May 6 14:43:26 2016) [sssd[nss]] [nss_cmd_getbysid] (0x0400): Running
command [275] with SID [S-1-5-21-1678445544-3505005498-3200762184-500].
(Fri May 6 14:43:26 2016) [sssd[nss]] [nss_check_well_known_sid] (0x4000):
SID [S-1-5-21-1678445544-3505005498-3200762184-500] is not a Well-Known SID.
(Fri May 6 14:43:26 2016) [sssd[nss]] [nss_cmd_getbysid] (0x0100): Requesting
info for [S-1-5-21-1678445544-3505005498-3200762184-500] from [samba]
(Fri May 6 14:43:26 2016) [sssd[nss]] [nss_cmd_getbysid_search] (0x0400):
Requesting info for [S-1-5-21-1678445544-3505005498-3200762184-500@samba]
(Fri May 6 14:43:26 2016) [sssd[nss]] [sss_ncache_check_str] (0x2000):
Checking negative cache for [NCE/SID/
S-1-5-21-1678445544-3505005498-3200762184-500]
(Fri May 6 14:43:26 2016) [sssd[nss]] [ldb] (0x4000): Added timed event
"ltdb_callback": 0x7f2c19598290
(Fri May 6 14:43:26 2016) [sssd[nss]] [ldb] (0x4000): Added timed event
"ltdb_timeout": 0x7f2c19592750
(Fri May 6 14:43:26 2016) [sssd[nss]] [ldb] (0x4000): Running timer event
0x7f2c19598290 "ltdb_callback"
(Fri May 6 14:43:26 2016) [sssd[nss]] [ldb] (0x4000): Destroying timer event
0x7f2c19592750 "ltdb_timeout"
(Fri May 6 14:43:26 2016) [sssd[nss]] [ldb] (0x4000): Ending timer event
0x7f2c19598290 "ltdb_callback"
(Fri May 6 14:43:26 2016) [sssd[nss]] [get_dp_name_and_id] (0x0400): Not a
LOCAL view, continuing with provided values.
(Fri May 6 14:43:26 2016) [sssd[nss]] [check_cache] (0x0400): Cached entry is
valid, returning..
(Fri May 6 14:43:26 2016) [sssd[nss]] [nss_cmd_getbysid_search] (0x0400):
Returning info for sid [S-1-5-21-1678445544-3505005498-3200762184-500@samba]
(Fri May 6 14:43:26 2016) [sssd[nss]] [reset_idle_timer] (0x4000): Idle timer
re-set for client [0x7f2c19598430][22]
(Fri May 6 14:43:26 2016) [sssd[nss]] [reset_idle_timer] (0x4000): Idle timer
re-set for client [0x7f2c19598430][22]
(Fri May 6 14:43:26 2016) [sssd[nss]] [client_recv] (0x0200): Client
disconnected!
(Fri May 6 14:43:26 2016) [sssd[nss]] [client_destructor] (0x2000):
Terminated client [0x7f2c19598430][22]
(Fri May 6 14:43:34 2016) [sssd[nss]] [sbus_dispatch] (0x4000): dbus conn:
0x7f2c1958f0c0
(Fri May 6 14:43:34 2016) [sssd[nss]] [sbus_dispatch] (0x4000): Dispatching.
(Fri May 6 14:43:34 2016) [sssd[nss]] [sbus_message_handler] (0x2000):
Received SBUS method org.freedesktop.sssd.service.ping on path /org/
freedesktop/sssd/service
(Fri May 6 14:43:34 2016) [sssd[nss]] [sbus_get_sender_id_send] (0x2000): Not
a sysbus message, quit
^C
[root@centi sssd]#
Additionally running
strace -s 128 -f wbinfo -S S-1-5-21-.........
at the beginning of the log:
strace -s 128 -f wbinfo -S S-1-5-21-1678445544-3505005498-3200762184-500
execve("/usr/bin/wbinfo", ["wbinfo", "-S",
"S-1-5-21-1678445544-3505005498-3200762184-500"], [/* 21 vars */]) = 0
brk(0) = 0x7ff478009000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff477060000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/samba/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
stat("/usr/lib64/samba/tls/x86_64", 0x7ffe8e036ec0) = -1 ENOENT (No such file
or directory)
open("/usr/lib64/samba/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
stat("/usr/lib64/samba/tls", 0x7ffe8e036ec0) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/samba/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
stat("/usr/lib64/samba/x86_64", 0x7ffe8e036ec0) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/samba/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
stat("/usr/lib64/samba", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=23560, ...}) = 0
mmap(NULL, 23560, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff47705a000
close(3) = 0
There are a lot of "No such file or directory"
open("/usr/lib64/samba/libsss_nss_idmap.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
locate libsss_nss_idmap.so
/usr/lib64/libsss_nss_idmap.so.0
it seems it reads in wrong location.
Want to add full log with -o but:
strace -o sssd-strace-wbinfo.txt -s 128 -f wbinfo -S
S-1-5-21-1678445544-3505005498-3200762184-500
shows
1480400500
Thanks!!
Stefan