The better way would be using a tool on the OS that's like db2ldif (pretty sure most netscape LDAP deriviatives come with these).
When you do a ldapsearch like that the server won't send along some fields (password being one of them). If you run the db2ldif it'll spit out an ldif file then you should be able to import it with something like ldif2db or just an ldapadd.
On 04/10/2014 02:24 PM, Herb Burnswell wrote:
Dustin thanks for the reply. I would need everything in: o=companyA/dc=hq,dc=example,dc=com/ Everything appears to be imported as needed except the password issue. If I reset the passwords in the new implementation it's fine but that won't work with 100's of users. Is this: /ldapsearch -b "o=companyA" -D "dc=hq,dc=example,dc=com" -h//original_system > output.ldif/
/an acceptable way of exporting everything including passwords for users or is there a better way?/ /Thanks again,/
/Herb/ Dustin Rice: Well, schema would be like, the list of fields whereas it looks like you might be doing a dump/load of users/groups?
On 04/10/2014 01:17 PM, Herb Burnswell wrote:
/ All,
/>/ />/ I'm attempting to import an LDAP schema (is that the correct term?) />/ from one LDAP implementation to another and it appears that I may be />/ doing it incorrectly. I created a ldif file for import as: />/ />/ ldapsearch -b "o=companyA" -D "dc=hq,dc=example,dc=com" -h />/ original_system > output.ldif />/ />/ I then used the GUI in the new LDAP implementation to import the ldif />/ file. Everything seemed to work find as I have the entire tree but />/ there appears to be a problem with passwords. />/ />/ Am I missing the passwords for users with this export to ldif file? />/ What is the proper procedure to import all information from a schema />/ (is that the correct term?) to import into a new LDAP implementation? />/ />/ Thanks in advance for any assistance, />/ />/ Herb />/ />/ />/ -- />/ 389 users mailing list />/ 389-users at lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-users />/ https://admin.fedoraproject.org/mailman/listinfo/389-users /
--
Dustin Rice UNIX System Administrator - CIS Portland State University =====================================
On Thu, Apr 10, 2014 at 1:17 PM, Herb Burnswell <herbert.burnswell@gmail.com mailto:herbert.burnswell@gmail.com> wrote:
All, I'm attempting to import an LDAP schema (is that the correct term?) from one LDAP implementation to another and it appears that I may be doing it incorrectly. I created a ldif file for import as: ldapsearch -b "o=companyA" -D "dc=hq,dc=example,dc=com" -h original_system > output.ldif I then used the GUI in the new LDAP implementation to import the ldif file. Everything seemed to work find as I have the entire tree but there appears to be a problem with passwords. Am I missing the passwords for users with this export to ldif file? What is the proper procedure to import all information from a schema (is that the correct term?) to import into a new LDAP implementation? Thanks in advance for any assistance, Herb
-- 389 users mailing list 389-users@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-users