[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4927) pam_authenticate through ldap causes cups to crash

Full_Name: Ryan Lovett
Version: 2.3.32
OS: Solaris 10
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

cups 1.2.10 invokes pam_authenticate which on my system goes through ldap. When
cups tries to authenticate it is dumping core. The backtrace seems to show that
it is crashing within the OpenLDAP code. I'm using the PADL libraries, not the
native Solaris libraries.

#0  0xfe50ddf0 in ldap_abandoned ()
   from /usr/local/openldap-2.3.32/lib/libldap-2.3.so.0
(gdb) bt
#0  0xfe50ddf0 in ldap_abandoned ()
   from /usr/local/openldap-2.3.32/lib/libldap-2.3.so.0
#1  0xfe50b354 in chkResponseList ()
   from /usr/local/openldap-2.3.32/lib/libldap-2.3.so.0
#2  0xfe50b230 in ldap_result ()
   from /usr/local/openldap-2.3.32/lib/libldap-2.3.so.0
#3  0xfe5d40f0 in do_bind (ld=0x1272d8, timelimit=30,
    dn=0xfe5f4a65 "uid=ldapadmin,cn=users,dc=our,dc=ldap,dc=domain",
    pw=0xfe5f4b7c "PaSsWoRD", with_sasl=1) at ldap-nss.c:1792
#4  0xfe5d49b8 in do_with_reconnect (
    base=0xfe5f4acc "cn=users,dc=our,dc=ldap,dc=domain", scope=1,
    filter=0xffbefa60 "(&(objectClass=shadowAccount)(uid=op))",
    attrs=0xfe5f57dc, sizelimit=1, private=0xffbf02e0,
    search_func=0xfe5d4ef0 <do_search_s>) at ldap-nss.c:1620
#5  0xfe5d7a00 in _nss_ldap_search_s (args=0xffbf0368,
    filterprot=0xfe5fa2a0 "(&(objectClass=shadowAccount)(uid=%s))",
    sel=LM_SHADOW, user_attrs=0x0, sizelimit=1, res=0xffbf02e0)
    at ldap-nss.c:3047
#6  0xfe5d7b84 in _nss_ldap_getbyname (args=0xffbf0368, result=0x128430,
    buffer=0x12c0e0 "nobody4", buflen=1024, errnop=0xffbf0484,
    filterprot=0xfe5fa2a0 "(&(objectClass=shadowAccount)(uid=%s))",
    sel=LM_SHADOW, parser=0xfe5db86c <_nss_ldap_parse_sp>) at ldap-nss.c:3394
#7  0xfe5dbb88 in _nss_ldap_getspnam_r (be=0x3, args=0xffbf0460)
    at ldap-spwd.c:136
#8  0xfeddbbfc in nss_search () from /lib/libc.so.1
#9  0xfedcad80 in getspnam_r () from /lib/libc.so.1
#10 0xfeba9630 in nss_getpwnam () from /usr/lib/passwdutil.so.1
#11 0xfeba9778 in nss_getattr () from /usr/lib/passwdutil.so.1
#12 0xfeba2e90 in __get_authtoken_attr () from /usr/lib/passwdutil.so.1
#13 0xfebd0cf0 in pam_sm_authenticate ()
   from /usr/lib/security/pam_authtok_get.so.1
#14 0xff2d2c88 in run_stack () from /lib/libpam.so.1
#15 0xff2d2f2c in pam_authenticate () from /lib/libpam.so.1
#16 0x00018b70 in cupsdAuthorize (con=0x140fe8) at auth.c:513
#17 0x0001eb98 in cupsdReadClient (con=0x140fe8) at client.c:1033
#18 0x0002dd04 in main (argc=476808, argv=0x461fc665) at main.c:934