Ldap Environment mapsize limit reached

,

j’ai atteinds la taille limite par defaut de la base ldap (300+ users)
slapd me dit

Environment mapsize limit reached

en théorie je suis sensé pouvoir rajouter

maxsize 4294967296

dans /etc/ldap/slapd.conf puis systemctl restart slapd
sauf que ça marche pas

alros j’essaye de modifier via ldapmodify ou slapadd avec un fichier .ldif mais ça bloque sur les droits d’accès

cat maxsize.ldif 
dn: olcDatabase={1}mdb,cn=config
changetype: modify
add: olcDbMaxSize
olcDbMaxSize: 4294967296
ldapmodify -x -W -D 'cn=admin,dc=yunohost,dc=org' -H ldap:// -f maxsize.ldif 
Enter LDAP Password: 
modifying entry "olcDatabase={1}mdb,cn=config"
ldap_modify: Insufficient access (50)
ldapmodify -x -W -D 'cn=config' -H ldap:// -f maxsize.ldif 
Enter LDAP Password: 
ldap_bind: Invalid credentials (49)
ldapmodify -x -W -D 'cn=config,dc=yunohost,dc=org' -H ldap:// -f maxsize.ldif 
Enter LDAP Password: 
ldap_bind: Invalid credentials (49)
slapadd -n0 -f maxsize.ldif 
5e9259ae maxsize.ldif: line 1: unknown directive <dn:> outside backend info and database definitions.
slapadd: bad configuration file!

etc

please help :pray:

est-ce que si j’ajoute maxsize 4294967296 puis que je lance yunohost tools regen-conf ça marcherait (sans tout péter) ?

slapd’s conf generation is a bit of a technical mess … I think your best bet is to edit /usr/share/yunohost/templates/slapd/slapd.conf, then run yunohost tools regen-conf slapd --force

(though beware that’s gonna get overwritten after each yunohost upgrade … but maybe soon™ as in next hours or next few days we can include your patch :stuck_out_tongue_winking_eye: )

1 Like

exactly what i was thinking right now
ok for the patch :wink: (but tomorrow)

1 Like

ça a marché, merci :heart_eyes:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.