URL: https://github.com/SSSD/sssd/pull/127
Title: #127: ssh: use cache_req

jhrozek commented:
"""
I'm afraid this is still not fixed correctly. Please check this gdb session 
when I requested an IPA host with a default_domain_suffix pointing to a Windows 
domain:
```
0x00007f0a1cc0d543 in __epoll_wait_nocancel () at 
../sysdeps/unix/syscall-template.S:84
84      T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
Missing separate debuginfos, use: dnf debuginfo-install 
sssd-common-1.14.2-2.fc25.x86_64
(gdb) b sysdb_search_ssh_hosts
Breakpoint 1 at 0x7f0a21095b90: file /sssd/src/db/sysdb_ssh.c, line 290.
(gdb) c
Continuing.

Breakpoint 1, sysdb_search_ssh_hosts (mem_ctx=0x20abf60, domain=0x20bb680, 
    filter=0x20bd6a0 "(name=client.ipa.test)", attrs=0x20b73f0, 
num_hosts=0x7fffa2d19770, hosts=0x7fffa2d19768)
    at /sssd/src/db/sysdb_ssh.c:290
290         tmp_ctx = talloc_new(NULL);
(gdb) c
Continuing.

Breakpoint 1, sysdb_search_ssh_hosts (mem_ctx=0x20abf60, domain=0x20bb680, 
    filter=0x20b8440 "(name=client.ipa.test)", attrs=0x20b73f0, 
num_hosts=0x7fffa2d198e0, hosts=0x7fffa2d198d8)
    at /sssd/src/db/sysdb_ssh.c:290
290         tmp_ctx = talloc_new(NULL);
(gdb) n
291         if (!tmp_ctx) {
(gdb) 
295         ret = sysdb_search_custom(tmp_ctx, domain, filter,
(gdb) 
298         if (ret != EOK && ret != ENOENT) {
(gdb) p ret
$1 = 2
(gdb) p filter
$2 = 0x20b8440 "(name=client.ipa.test)"
(gdb) p *domain
$3 = {name = 0x20ac820 "win.trust.test", conn_name = 0x20b7d60 "ipa.test", 
provider = 0x20bc0f0 "ipa", timeout = 0, 
  enumerate = false, sd_enumerate = 0x0, fqnames = true, mpg = true, 
ignore_group_members = false, id_min = 1, 
  id_max = 4294967295, cache_credentials = true, 
cache_credentials_min_ff_length = 8, legacy_passwords = false, 
  case_sensitive = false, case_preserve = false, override_gid = 0, 
override_homedir = 0x0, fallback_homedir = 0x0, 
  subdomain_homedir = 0x20ab490 "/home/%d/%u", homedir_substr = 0x0, 
override_shell = 0x0, default_shell = 0x0, 
  user_timeout = 5400, group_timeout = 5400, netgroup_timeout = 5400, 
service_timeout = 5400, autofsmap_timeout = 0, 
  sudo_timeout = 0, ssh_host_timeout = 0, refresh_expired_interval = 0, 
subdomain_refresh_interval = 0, 
  cached_auth_timeout = 0, pwd_expiration_warning = -1, sysdb = 0x20b31d0, 
names = 0x20ad590, parent = 0x20aed20, 
  subdomains = 0x0, realm = 0x20baff0 "WIN.TRUST.TEST", flat_name = 0x20bc490 
"WIN", 
  domain_id = 0x20b6060 "S-1-5-21-1733986419-3120376054-1365464917", 
trust_direction = 0, subdomains_last_checked = {
    tv_sec = 0, tv_usec = 0}, has_views = false, view_name = 0x20b85f0 
"default", prev = 0x0, next = 0x20be700, 
  state = DOM_ACTIVE, sd_inherit = 0x0, forest = 0x20ae870 "win.trust.test", 
forest_root = 0x20bb680, 
  upn_suffixes = 0x0}
(gdb) 
```
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/127#issuecomment-277731678
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org

Reply via email to