Hi Quanah
Just to be sure I manually removed the line and typed it back but still see the ERROR. Following line is causing the issue
objectClass: olcAccessLogConfig
I am attaching the ldif file for your reference.
Thanks Rahul
On Mon, Jul 6, 2020 at 2:40 PM Quanah Gibson-Mount quanah@symas.com wrote:
--On Monday, July 6, 2020 3:18 PM -0400 kumar rahul rahul2002mit@gmail.com wrote:
adding new entry "olcOverlay={1}accesslog,olcDatabase={3}mdb,cn=config" ldap_add: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax
At a guess, you have something like a space or tab after the objectClass value.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Hi Quanah
I reconfigured ldap and the script ran fine. Thank you for all the help.Now i am 1 step closer to setting up delta syncrepl. Will reach out to you in case of any issue or clarification. Thank you for all the help.
ldapmodify -x -D 'cn=config' -w secret -f update_config.ldif adding new entry "olcDatabase={2}mdb,cn=config"
adding new entry "olcOverlay=syncprov,olcDatabase={2}mdb,cn=config"
adding new entry "olcOverlay={0}syncprov,olcDatabase={3}mdb,cn=config"
adding new entry "olcOverlay={1}accesslog,olcDatabase={3}mdb,cn=config"
modifying entry "olcDatabase={3}mdb,cn=config"
thanks Rahul
On Mon, Jul 6, 2020 at 3:07 PM kumar rahul rahul2002mit@gmail.com wrote:
Hi Quanah
Just to be sure I manually removed the line and typed it back but still see the ERROR. Following line is causing the issue
objectClass: olcAccessLogConfig
I am attaching the ldif file for your reference.
Thanks Rahul
On Mon, Jul 6, 2020 at 2:40 PM Quanah Gibson-Mount quanah@symas.com wrote:
--On Monday, July 6, 2020 3:18 PM -0400 kumar rahul rahul2002mit@gmail.com wrote:
adding new entry "olcOverlay={1}accesslog,olcDatabase={3}mdb,cn=config" ldap_add: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax
At a guess, you have something like a space or tab after the objectClass value.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Hi Quanah
I have some questions from update_config.ldif file 1) While configuring accesslog database we gave number 2 because 1 is the actual database? [image: image.png] [image: image.png]
2) Are we configuring syncprov for the accesslog database here? [image: image.png]
3) What exactly we are doing here. I see mdb number has changed to 3 [image: image.png] 4) Why we are configuring accesslog overlay with mdb value 3 [image: image.png]
Thanks Rahul
On Mon, Jul 6, 2020 at 3:35 PM kumar rahul rahul2002mit@gmail.com wrote:
Hi Quanah
I reconfigured ldap and the script ran fine. Thank you for all the
help.Now i am 1 step closer to setting up delta syncrepl. Will reach out to you in case of any issue or clarification. Thank you for all the help.
ldapmodify -x -D 'cn=config' -w secret -f update_config.ldif adding new entry "olcDatabase={2}mdb,cn=config"
adding new entry "olcOverlay=syncprov,olcDatabase={2}mdb,cn=config"
adding new entry "olcOverlay={0}syncprov,olcDatabase={3}mdb,cn=config"
adding new entry "olcOverlay={1}accesslog,olcDatabase={3}mdb,cn=config"
modifying entry "olcDatabase={3}mdb,cn=config"
thanks Rahul
On Mon, Jul 6, 2020 at 3:07 PM kumar rahul rahul2002mit@gmail.com wrote:
Hi Quanah
Just to be sure I manually removed the line and typed it back but still see the ERROR. Following line is causing the issue
objectClass: olcAccessLogConfig
I am attaching the ldif file for your reference.
Thanks Rahul
On Mon, Jul 6, 2020 at 2:40 PM Quanah Gibson-Mount quanah@symas.com wrote:
--On Monday, July 6, 2020 3:18 PM -0400 kumar rahul rahul2002mit@gmail.com wrote:
adding new entry "olcOverlay={1}accesslog,olcDatabase={3}mdb,cn=config" ldap_add: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax
At a guess, you have something like a space or tab after the objectClass value.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
--On Monday, July 6, 2020 6:21 PM -0400 kumar rahul rahul2002mit@gmail.com wrote:
Hi Quanah
I have some questions from update_config.ldif file
Please don't attach screenshots of text. If you have questions, use text email.
In general, however:
One database is used as the main database for the system. Lets call this database A. One database is used to store the accesslog data (the change deltas). Lets call this database B. There may be other databases on the system (such as the monitor database). Lets call this database C.
Both the syncprov and accesslog *overlays* must be configured on database A with the appropriate configuration options.
The syncprov overlay must *also* be configured on database B with the appropriate (but different) configuration options to indicate it's an accesslog DB.
In cn=config, every database has a weight that indicates the order in which it loads. So:
olcDatabase={1}... is the first DB to get loaded by slapd (Ignoring {-1} and {0} which always exist, and are the frontend and config DBs respectively).
olcDatabase={2}... would be the second DB to get loaded by slapd
olcDatabase={3}... would be the third DB to get loaded by slapd
Additionally, overlays have weights associated with them to indicate the order in which they get loaded. So:
olcOverlay={1}...,olcDatabase={2}... means that this overlay is the first one that gets loaded for database #2.
In the EXAMPLE I provided on my blog:
olcDatabase={1} is the monitoring database (database C above)
olcDatabase={2} is the ACCESSLOG database (database B above)
olcDatabase={3} is the MAIN database (database A above)
So which overlays need to apply to which databases depends ENTIRELY ON THE ORDER in which they are defined in *YOUR* configuration. You need to make adjustments accordingly.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org