Importing database in LDAP creates error
Your LDAP database is not empty. Id what you are trying to do is migrate to a new machine, please read on. If you're trying to add more from previous database to already populated database on new machine please stop.
if you slapcat your new server you'll get your your
dc=dmdomain,dc=com
as an entry. What I suggest you do (please use snapshot or other method to make sure you can recover from any other error before doing this).
delete all content from /etc/ldap/slapd.d. This will make a clean slate on your ldap.
slapadd -l file location
Related videos on Youtube
Shahrukh Khan
Summary Smart Work || Intelligent Solutions || Improvisation || Quick Adaption/Learner || Loosely Coupled Coding || Automation || Handling Priorities|| Soft Coding || Efficiently Organized Believer and Implementer in Automation/Streamlining of Responsibilities, which in turn gives efficiency, high response time, reducing man effort and saving loads of time Working with fortune 200 Clients such as Kohls Department Stores Office Depot Bombay Stock Exchange Masters in Computer Engineering - Image Processing / Computer Vision Bachelors in Computer Science Engineering Experience and knowledge of best practices in following fields DevOps Continuous Integration and Delivery Build and Release Management Hadoop, Cloud and System Administration Configuration Management Automation Application Software Development Image Processing and Computer Vision Skills Scripting - BASH, Shell, Python Programming - C++, Java, PHP API - Google API, OpenCV, OpenGL, RESTful API Operating System - Linux (RHEL, Debian), Windows, Mac OSX Cloud IaaS - AWS, OpenStack, Google Cloud Database - Hadoop, Hive, HBase, MySQL, PostgreSQL, OpenLDAP, GreenPlum Virtualization - VMWare, VirtualBox Containerization Tools - Docker, Tomcat Container Management - ECS, AWS Elastic Beanstalk, Kubernetes, Mesos Configuration Management - Chef, Puppet, Ansible, Ambari Blueprints, AWS CloudFormation Continuous Integration - Jenkins, Bamboo, Hudson Build Tools - Gradle, Make, Maven Version-Control Systems - GIT, SVN/Subversion Repo Management - Nexus, Docker Hub Web Servers - Apache, Nginx, IIS Systems/Cluster Monitoring - Nagios, CloudWatch, Cloudera Manager, Ambari Security Administration - Apache Ranger, Knox Collaboration - JIRA, ServiceNow, Confluence, Bugzilla, Google Apps Reporting/Documentation - Google Apps, DrawIO IDE - Eclipse, Netbeans
Updated on September 18, 2022Comments
-
Shahrukh Khan over 1 year
I have exported my database using the following function
slapcat > ldif
While I am importing database in other LDAP server it creates error. I am using the following function
slapadd -l ldif
.This creates the following error
560d7819 The first database does not allow slapadd; using the first available one (2) 560d7819 => hdb_tool_entry_put: id2entry_add failed: BDB0067 DB_KEYEXIST: Key/data pair already exists (-30994) 560d7819 => hdb_tool_entry_put: txn_aborted! BDB0067 DB_KEYEXIST: Key/data pair already exists (-30994) slapadd: could not add entry dn="dc=dmdomain,dc=com" (line=1): txn_aborted! BDB0067 DB_KEYEXIST: Key/data pair already exists (-30994) _##### 26.09% eta none elapsed none spd 957.4 k/s Closing DB...
What should I do??
-
84104 over 8 years
slapadd
exists for very specific reasons. What are you trying to accomplish?
-