1

Topic: phpldapadmin problem

I am unable to import schema using phpldapadmin import button.

for example If i tried to import the cosine.ldif
It is complaining(2 errors)as follows
"Could not add the object to the LDAP server.
LDAP said:    Insufficient access
Error number:    0x32 (LDAP_INSUFFICIENT_ACCESS)
Description:    You do not have sufficient permissions to perform that operation."

and

"LDIF text import
Could not add object cn=cosine,cn=schema,cn=config
LDAP said:    Insufficient access
Error number:    0x32 (LDAP_INSUFFICIENT_ACCESS)
Description:    You do not have sufficient permissions to perform that operation."

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: phpldapadmin problem

chaitanya_g7 wrote:

Description:    You do not have sufficient permissions to perform that operation."

It's clear here. please try logining to phpLDAPadmin with cn=Manager.

3

Re: phpldapadmin problem

ZhangHuangbin wrote:
chaitanya_g7 wrote:

Description:    You do not have sufficient permissions to perform that operation."

It's clear here. please try logining to phpLDAPadmin with cn=Manager.

already i logged in with cn=Manager,dc=xxxx,dc=xxx account only.

4

Re: phpldapadmin problem

chaitanya_g7 wrote:

for example If i tried to import the cosine.ldif

What's cosine.ldif? What is it used for?

5

Re: phpldapadmin problem

ZhangHuangbin wrote:
chaitanya_g7 wrote:

for example If i tried to import the cosine.ldif

What's cosine.ldif? What is it used for?

I just gave it as an example, my motive is to tell u that I am unable to load any kind of new schema, hope u can understand..

6

Re: phpldapadmin problem

I'm afraid that you used an improper example.
Just describe what you did, what file you used, etc.
You can hide/replace sensitive domain names/passwords/usernames before posting, but don't use a improper example. Otherwise others don't know how to help you.

7

Re: phpldapadmin problem

Ok, sorry for that..

the below is the file I want to import I named it as 1.ldif and trying to import, changes done here are cn=example,cn=com instead of my cn=my domain,cn=com

"dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/ldap
olcModuleload: back_hdb

dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcSuffix: dc=example,dc=com
olcDbDirectory: /var/lib/ldap
olcRootDN: cn=Manager,dc=example,dc=com
olcRootPW: pwd123
olcDbConfig: set_cachesize 0 2097152 0
olcDbConfig: set_lk_max_objects 1500
olcDbConfig: set_lk_max_locks 1500
olcDbConfig: set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcLastMod: TRUE
olcDbCheckpoint: 512 30
olcAccess: to attrs=userPassword by dn="cn=Manager,dc=example,dc=com" write by anonymous auth by self write by * none
olcAccess: to attrs=shadowLastChange by self write by * read
olcAccess: to dn.base="" by * read
olcAccess: to * by dn="cn=Manager,dc=example,dc=com" write by * read"

8

Re: phpldapadmin problem

OpenLDAP in iRedMail uses slapd.conf instead of slapd.d/, so you can't add cn=config in it.

9

Re: phpldapadmin problem

ZhangHuangbin wrote:

OpenLDAP in iRedMail uses slapd.conf instead of slapd.d/, so you can't add cn=config in it.

Is there any way to make it use slapd?