ldap_modify: Insufficient access (50)

Kernels & Hardware, configuring network, installing services

ldap_modify: Insufficient access (50)

Postby washide » 2017-06-27 11:33

Hello, how overcome Insuficient access (50) using cmd line.

Code: Select all
root@koscielec:/etc/ldap# ldapmodify -H ldap:// -x -D 'cn=admin,dc=dupa,dc=pl' -W -f dupa.ldif
Enter LDAP Password:
modifying entry "olcDatabase={1}bdb,cn=config"
ldap_modify: Insufficient access (50)


root@koscielec:/etc/ldap# more dupa.ldif
Code: Select all
dn: olcDatabase={1}bdb,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {SSHA}g9ej8hAxXzaGo8HeJFuOguQW+sVbmbxd



root@koscielec:/etc/ldap# cat slapd.d/cn\=config/olcDatabase={1}bdb.ldif
Code: Select all
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 f6ec5da0
dn: olcDatabase={1}bdb
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: {1}bdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=dupa,dc=pl
olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonym
 ous auth by * none
olcAccess: {1}to dn.base="" by * read
olcAccess: {2}to * by * read
olcLastMod: TRUE
olcRootDN: cn=admin,dc=dupa,dc=pl
olcRootPW:: e1NTSEF9bE5zRGpFTDR2TGNpM2ZpNzhMbEg1NjdMYTgyOW1LNEk=
olcDbCheckpoint: 512 30
olcDbConfig: {0}set_cachesize 0 2097152 0
olcDbConfig: {1}set_lk_max_objects 1500
olcDbConfig: {2}set_lk_max_locks 1500
olcDbConfig: {3}set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcDbIndex: cn,uid eq
olcDbIndex: uidNumber,gidNumber eq
olcDbIndex: member,memberUid eq
structuralObjectClass: olcBdbConfig
entryUUID: 9117038e-ef63-1036-9242-f72f0ddaff6b
creatorsName: cn=admin,cn=config
createTimestamp: 20170627090553Z
entryCSN: 20170627090553.238071Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20170627090553Z
washide
 
Posts: 1
Joined: 2017-06-27 09:11

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable