Friday, January 28, 2022

[389-users] Re: how to export/import a single ldap user

Rob Murray wrote:
> Isabella
>
>  
>
> Just do an ldapsearch  send the output to a file,  Edit the file and
> insert the line below after the dn: line in the ldi

It depends on what attributes are needed. If you need things like
userPassword that are normally not visible you should bind as the
Directory Manager.

In order to get the full entry, including operational attributes, you
probably need two searches. One for * (default) and one for +
(operational) and then combine the results. At least I don't know of a
way to get both at once.

rob

>
> changetype: add
>
>  
>
> run ldapmodify against the server or on the server where the entry is to
> be added.
>
>  
>
> man ldapadd
>
>  
>
> Rob.
>
>  
>
>  
>
> *From:* Ghiurea, Isabella <Isabella.Ghiurea@nrc-cnrc.gc.ca>
> *Sent:* January 28, 2022 12:19 PM
> *To:* General discussion list for the 389 Directory server project.
> <389-users@lists.fedoraproject.org>
> *Subject:* [389-users] how to export/import a single ldap user
>
>  
>
> ✉*External message:*Use caution.
>
> Hi
>
> I need to copy one user ldap from one server to another server, the
> users must be exported with all attributes entries .I checked  db2ldif
> but I cannot seem to find an option for a single user, please suggest
> how to export and import a single user in a DS.
>
> Thank you
>
> Isabella
>
>
> _______________________________________________
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
>
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

No comments:

Post a Comment