https://bugs.openldap.org/show_bug.cgi?id=10120

          Issue ID: 10120
           Summary: slapd crashes when changing ARGON2 olcRootPW via
                    ldapmodify
           Product: OpenLDAP
           Version: 2.6.5
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: slapd
          Assignee: b...@openldap.org
          Reporter: aim...@yabarana.com
  Target Milestone: ---

slapd dies when executing LDIF remotely with ldapmodify:

This is the command we are running: 

ldapadd -H ldap://:xxx -x -D xxx -w xxx -f foo.ldif 

(we are using ldapadd as a convenience because the LDIF file creates and
modifies entries)

This fragment of foo.ldif causes slapd to die:

dn: olcDatabase={0}config,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {ARGON2}$argon2id$v=19$m=65536,t=128,p=2$********

The last few lines of debug indicate this:

2023-10-23 15:49:36 653679f0.32572d8b 0xffff45945b10 mdb_idl_insert_keys: 56
[f8bb395f]
2023-10-23 15:49:36 653679f0.325f95ba 0xffff45945b10 send_ldap_result: err=0
matched="" text=""
2023-10-23 15:49:36 653679f0.3266665b 0xffff46249b10 connection_get(13)
2023-10-23 15:49:36 653679f0.3266bebc 0xffff46249b10 conn=1010 op=2 do_modify:
dn (olcDatabase={0}config,cn=config)
2023-10-23 15:49:36 653679f0.3266c8a9 0xffff46249b10 =>
ldap_bv2dn(olcDatabase={0}config,cn=config,0)
2023-10-23 15:49:36 653679f0.3266d026 0xffff46249b10 <=
ldap_bv2dn(olcDatabase={0}config,cn=config)=0 
2023-10-23 15:49:36 653679f0.3266e35b 0xffff46249b10 => ldap_dn2bv(272)
2023-10-23 15:49:36 653679f0.32671cf9 0xffff46249b10 <=
ldap_dn2bv(olcDatabase={0}config,cn=config)=0 
2023-10-23 15:49:36 653679f0.326723a5 0xffff46249b10 => ldap_dn2bv(272)
2023-10-23 15:49:36 653679f0.32672904 0xffff46249b10 <=
ldap_dn2bv(olcDatabase={0}config,cn=config)=0 
2023-10-23 15:49:36 653679f0.32672e63 0xffff46249b10 conn=1010 op=2
modifications:
2023-10-23 15:49:36 653679f0.326803c4 0xffff46249b10    replace: olcRootPW
2023-10-23 15:49:36 653679f0.32681a3a 0xffff46249b10            one value,
length 384
2023-10-23 15:49:36 Assertion failed: pool->ltp_pause == PAUSED (tpool.c:
ldap_pvt_thread_pool_resume: 1319)

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to