LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2021, 10:15 AM   #1
glennbtn
Member
 
Registered: Dec 2009
Posts: 154

Rep: Reputation: 19
LDAP cn=config update not working


Hi All.

I have managed to get an ldap server up and running on debian 9, but can't query more than 500 record. I have created my ldif file with the following

dn: cn=config
changetype: modify
replace: olcSizeLimit
olcSizeLimit: 20000

Ran the import with

ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f changefile.ldif

restarted the service and checked the /etc/ldap/slapd.d/cn=config.ldif which shows the correct information olcSizeLimit: 20000

Now I still can't search more than 500 records and when I run a query this confirms

ldapsearch -LLLQ -Y EXTERNAL -H ldapi:/// -b olcDatabase={-1}frontend,cn=config olcSizeLimit

dn: olcDatabase={-1}frontend,cn=config
olcSizeLimit: 500

Can anyone advise as can't seem to resolve the issue, thanks
 
Old 03-05-2021, 02:11 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by glennbtn View Post
Hi All.

I have managed to get an ldap server up and running on debian 9, but can't query more than 500 record. I have created my ldif file with the following

dn: cn=config
changetype: modify
replace: olcSizeLimit
olcSizeLimit: 20000

Ran the import with

ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f changefile.ldif

restarted the service and checked the /etc/ldap/slapd.d/cn=config.ldif which shows the correct information olcSizeLimit: 20000

Now I still can't search more than 500 records and when I run a query this confirms

ldapsearch -LLLQ -Y EXTERNAL -H ldapi:/// -b olcDatabase={-1}frontend,cn=config olcSizeLimit

dn: olcDatabase={-1}frontend,cn=config
olcSizeLimit: 500

Can anyone advise as can't seem to resolve the issue, thanks
Hi,

Since you want to change olcSizeLimit for the frontend, you need to change the dn in the ldif you're using:
Code:
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
replace: olcSizeLimit
olcSizeLimit: 2000
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu ldap clients cannot login after ldap password is changed from the ldap server nitinm Ubuntu 8 08-20-2020 07:32 AM
OpenLDAP - Difference between etc/ldap.conf and etc/ldap/ldap.conf ramkrishnan Linux - Server 1 07-09-2018 02:01 PM
zimbra saslauthd not working/zimbra smtp authenticaion using zimbra ldap not working SarahGurung Linux - Server 8 10-27-2015 10:12 AM
Difference between /etc/ldap.conf vs. /etc/ldap/ldap.conf fahadaziz Linux - Server 8 07-14-2010 05:12 AM
config ldap client for slave ldap neverland Linux - Server 9 04-09-2010 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration