search for: slapadd

Displaying 20 results from an estimated 61 matches for "slapadd".

2010 Mar 23
7
PDC migration from suse 8.2 - samba 2.2.7 ldap - to latest versions on ubuntu 8.04
Hello, Hopefully I'm in the right place asking for help :-) I need to move from an old physical Suse 8.2 - samba 2.2.7 + ldap - to latest samba versions, I would like to use an ubuntu 8.04 virtual machine. The domain is in production on the physical server, to be dismissed after migration. It is also the file server!!! so /DATA/ has all shared and permission driven file access.. I was
2017 Apr 11
2
Migrating from Centos 5 NT4 style to Centos 7 issues
...move my ldap backup that I got from backups: slapcap -l mydomain.ldif Next move my config files to the new server: /etc/ldap.conf /etc/openldap/slapd.conf /etc/openldap/ldap.conf Schemas are correct. Copy DB_CONFIG that doesn't exist on openldap 2.4, to /var/lib/ldap/ Restore ldap backup. slapadd -l mydomain.ldif But I got this error: slapadd -l /opt/mydomain.ldap 58ecf8a3 The first database does not allow slapadd; using the first available one (2) slapadd: line 1: database #2 (dc=my-domain,dc=com) not configured to hold "dc=mydomain,dc=local"; no database configured for that na...
2017 Apr 11
2
Migrating from Centos 5 NT4 style to Centos 7 issues
...ou want. > > > >> Copy DB_CONFIG that doesn't exist on openldap 2.4, to /var/lib/ldap/ > > * Does there anything exist in this directory? If yes, delete it. > * Restore your DB_CONFIG file. > * Start slapd to create the initial database files. > * Stop slapd again. slapadd works offline. > > > > >> Restore ldap backup. >> >> slapadd -l mydomain.ldif > > Just to make sure that the command uses your config: > # slapadd -l mydomain.ldif -f /etc/openldap/slapd.conf > > > >> But I got this error: >> >> slap...
2015 Nov 27
3
LDAP setup on Centos 7
...Class: organizationalRole > cn: Manager > description: Directory Manager > > dn: ou=People,dc=ringways,dc=com > objectClass: organizationalUnit > ou: People > > dn: ou=Group,dc=ringways,dc=com > objectClass: organizationalUnit > ou: Group # systemctl stop slapd # slapadd -v -l this-ldif-file # cat this-ldif-file dn: dc=ringways,dc=com objectClass: dcObject objectclass: organization o: Ringways dc: ringways # systemctl start slapd # ldapadd -x -D cn=Manager,dc=ringways,dc=com -W -f the-rest-of-yourfile -- LF
2017 Apr 11
0
Migrating from Centos 5 NT4 style to Centos 7 issues
...the directory-style configuration if you want. > Copy DB_CONFIG that doesn't exist on openldap 2.4, to /var/lib/ldap/ * Does there anything exist in this directory? If yes, delete it. * Restore your DB_CONFIG file. * Start slapd to create the initial database files. * Stop slapd again. slapadd works offline. > Restore ldap backup. > > slapadd -l mydomain.ldif Just to make sure that the command uses your config: # slapadd -l mydomain.ldif -f /etc/openldap/slapd.conf > But I got this error: > > slapadd -l /opt/mydomain.ldap > 58ecf8a3 The first database does no...
2004 Oct 04
2
Samba + OpenLdap replication problem
...p-2.1.29-1, which serves 60 users in a domain. Now I'm trying to set up a backup domain controller, based on the same software, on another machine. I stop Openldap on the master, dump the ldap database (slapcat > /root/Master.ldif), move the file on the slave machine and try to import it (slapadd -l Master.ldif -f /etc/openldap/slapd.conf), but the last command ends with thi error [root@bdc root]# slapadd -l Master.ldif -f /etc/openldap/slapd.conf slapadd: bad configuration file! Has anyone anyone of never had experience of an error like this? Thanks Bye... Mattia
2017 Apr 11
0
Migrating from Centos 5 NT4 style to Centos 7 issues
...Copy DB_CONFIG that doesn't exist on openldap 2.4, to /var/lib/ldap/ >>> >> >> * Does there anything exist in this directory? If yes, delete it. >> * Restore your DB_CONFIG file. >> * Start slapd to create the initial database files. >> * Stop slapd again. slapadd works offline. >> >> >> >> >> Restore ldap backup. >>> >>> slapadd -l mydomain.ldif >>> >> >> Just to make sure that the command uses your config: >> # slapadd -l mydomain.ldif -f /etc/openldap/slapd.conf >> >> &...
2015 May 25
1
Centos 7.1 openldap-2.4.39 question
...of the LDAP servers is due to very little exercise. Yesterday I decided to try and see exactly how well replication was working. With server-2 up and running I tried these sequences of commands on server-1 (domain, user and DNs have been changed): server-1> systemctl stop slapd server-1> slapadd -l useradd.ldif server-1> systemctl start slapd server-1> ldapsearch -ZZ -W -D cn=Boss,dc=example,dc=com -b ou=People,dc=example,dc=com uid=newuser # extended LDIF # # LDAPv3 # base <ou=People,dc=example,dc=com> with scope subtree # filter: uid=newuser # requesting: ALL # # newuser, P...
2012 May 01
1
OpenLDAP migration from Centos 5 to 6
...ument <http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html /Deployment_Guide/ch-Directory_Servers.html> doesn't really tell you what to do. Basically, I've saved the data on the old server with slapcat > /tmp/ldif and moved ldif to the new server . But when I run slapadd -l /tmp/ldif on the new server I get the response -------------------------------------- [root at grover ldap]# slapadd -l /tmp/ldif The first database does not allow slapadd; using the first available one (2) bdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2). Expect p...
2015 Nov 27
0
[MASSMAIL]Re: LDAP setup on Centos 7
On Friday 27 November 2015 16:14:32 Leon Fauster wrote: > # systemctl stop slapd > > # slapadd -v -l this-ldif-file > > > # cat this-ldif-file > dn: dc=ringways,dc=com > objectClass: dcObject > objectclass: organization > o: Ringways > dc: ringways > > # systemctl start slapd > > > # ldapadd -x -D cn=Manager,dc=ringways,dc=com -W -f the-rest-of-yourfile...
2015 Nov 27
1
[MASSMAIL]Re: LDAP setup on Centos 7
Am 27.11.2015 um 17:22 schrieb Gary Stainburn <gary at ringways.co.uk>: > On Friday 27 November 2015 16:14:32 Leon Fauster wrote: >> # systemctl stop slapd >> >> # slapadd -v -l this-ldif-file >> >> >> # cat this-ldif-file >> dn: dc=ringways,dc=com >> objectClass: dcObject >> objectclass: organization >> o: Ringways >> dc: ringways >> >> # systemctl start slapd >> >> >> # ldapadd -x -D...
2009 Mar 12
1
updating samba/ldap: do I need new attributes?
...an to update my samba-3.0.22/openldap-2.3.24 to samba-3.0.34/openldap-2.4.15 and I'm currently testing it. This is on FreeBSD. My idea is : 1) slapcat the openldap server and save the various tdb files. 2) deinstall samba and openldap and wipe out the bdb files 3) install the newer versions 4) slapadd to the new openldap server This seems to work in my test lab. During my tests I also built a new domain afresh and realized that the sambaDomainName ldap entry has some attributes that are not in my production server: sambaMinPwdLength, sambaLogonToChgPwd, sambaLockoutDuration, sambaLockoutObser...
2018 Sep 06
1
Migration samba 3 to 4
...do to > Samba, or how you would do it, again because I have never tried to do > this. > > Rowland > I test this solution: slapcat> export.ldif edit export.ldif to change the rootdn and all references to the old rootdn cp -a /var/lib/ldap/DB_CONFIG /root rm -rf /var/lib/ldap/ * slapadd [...] -u -l export.ldif vim /etc/openldap/slapd.conf to change the old rootdn start ldap For now I'm blocking slapadd. I continue my tests and I will give the result. Philippe. >
2009 Mar 24
1
problem with sambaNextRid (WAS: updating samba/ldap: do I need new attributes?)
...penldap-2.4.15 and I'm currently testing it. >> This is on FreeBSD. >> >> My idea is : >> 1) slapcat the openldap server and save the various tdb files. >> 2) deinstall samba and openldap and wipe out the bdb files >> 3) install the newer versions >> 4) slapadd to the new openldap server >> >> This seems to work in my test lab. >> During my tests I also built a new domain afresh and realized that the >> sambaDomainName ldap entry has some attributes that are not in my >> production server: sambaMinPwdLength, sambaLogonToChgPw...
2010 Nov 24
1
Primary Group SID incorrect - ahhhh
Hi, I'm running 3.0.33-3.29.el5_5.1 .. migrating from 3.0.21a with an LDAP back-end. I've use slapadd to import the LDIF file I've exported from my original samba server, but it seems like samba isn't grabbing the Primary Group SID from the ldif file. For Example: dn: uid=chris,ou=Users,dc=orgon,dc=com sambaSID: S-1-5-21-3318375643-2463009161-752822123-3028 sambaPrimaryGroupSID: *S-1-5-21-...
2007 Jul 18
2
openldap migration script fails...
... with this error message: Preparing LDAP database... => bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996) => bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996) slapadd: could not add entry dn="dc=washcslab,dc=org" (line=5): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996) Migration failed: saving failed LDIF to /tmp/nis.ldif.Gi3667 ok, so this is the second (or fourth) time i've done this, but is there a way to delete the existing...
2005 Dec 01
3
Samba 3.0.9 ==> 3.0.14a migration LDIF problem
...to import the LDIF of the existing LDAP directory. The LDIF actually imports all of the structure (OU and Group definitions) and all of my users, but it fails when it comes to my first machine account with this error: ============================================================================== slapadd: dn="uid=magellan$,ou=Computers,dc=nesbitt,dc=local" (line=1437): (65) no structural object class provided ============================================================================== I'm certain that is caused by the differing version of OpenLDAP that I'm running, but for the...
2007 Aug 24
1
Windows XP joining Samba/LDAP domain problem (User cannot be found) [SOLVED]
...e to a safe place. 4) Delete the files in the LDAP database directory, in the above case rm -f /var/lib/ldap/* ,and then check the directory to make sure it's empty "ls -la /var/lib/ldap". If you had a DB_CONFIG file in there, copy it back from the backup directory. 5) Run "slapadd -v -l /root/userdump.ldif" to add the modified ldif file back into LDAP. The -v forces slapadd into versbose mode so you should see all the entries scrolling up the screen as they're added. 6) Change ownership of the ldap directory and it's newly created databases to user/group lda...
2007 Jan 18
2
Why slapd dying?
I am wondering why slapd in my CentOS 4.4s erver was unable to run. I already configure ldap to start at boot and when I issue command /sbin/service ldap start it is sucessfully started but again when I check the status etheir thru service or by netstat, it was stopped and not exist respectively. Is anybody encountered this. If you need some more info just let me know. Thanks. junji linux
2018 May 29
2
move LDAP service to new server
On my old Centos 7 server I had set up a LDAP database for user authentication by other services (the server locally uses normal PAM authenticatin). I set it up originally from a web page describing how to set up an LDAP server for use with MS Outlook clients (which never worked) Is there any (easy to follow) instructions anywhere to tell me how to back up this service and restore it onto a