Would "ldapaddent -d <database>" work as well ? "ldapaddent -d passwd" outputs passwd entries in the same format as defined in passwd(4) instead of in LDIF. IMO from Native LDAP point of view, the first format is more generic as it is independent of the objectclass/attribute mapping. The second may not be readily usable to be added by ldapadd/ldapmodify to a server without the necessary mapped schema.
The recent changes (standalone libsldap) to the Native LDAP client tools (ldapaddent, ldaplist, ldapclient) would make it easier to do such things as these tools can be run in the standalone mode and not just only on a Native LDAP client anymore. -- Michen Ben Rockwood wrote: > I notice that thanks to Duckwater ldapaddent is getting some much needed > love. I'd like to request a feature: the ability to process a database and > simply output an LDIF. > > Something such as "ldapaddent passwd > /tmp/passwd.ldif" would be extremely > handy. > > This would allow the ability to intelligently produce LDIF's from a variety > of systems on a given network and then selectively splice together something > handy. > > benr. > -- > This message posted from opensolaris.org > _______________________________________________ > sparks-discuss mailing list > sparks-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/sparks-discuss >
