大网数据广告活动
服务器运维问答

How to migrate users between two different versions of OpenLDAP?

· 52CE 我爱测

I need to export and import users between Two different versions of OpenLDAP, Old openldap version is 2.42 and new one has version 2.44. Both the openldap servers are setup on Ubuntu. In this answer ldap export and import they ha…

问题原文

原帖链接 · Vishal · CC BY-SA 4.0

I need to export and import users between Two different versions of OpenLDAP, Old openldap version is 2.42 and new one has version 2.44. Both the openldap servers are setup on Ubuntu.

In this answer ldap export and import they have used slapcat/slapadd utilities, Will the same be applicable in my case as well? Because they have exported schema files as well.

I can export users using ldapsearch and add them on new openldap using ldapadd. But when i export users using ldapsearch the userPassword attribute is in base64 encoded format how do i deal this that?

I just need to export users from older version of my openldap server please give suggestions.

已采纳解答

原帖链接 · HBruijn · CC BY-SA 4.0

You can restrict what you export with slapcat by using the -H flag. You are not required to export everything.

Alternatively export your users with ldapsearch with a similar filter.

LDAP: backup with slapcat vs ldapsearch

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-04-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。