[Samba] Copy additional LDAP attributes on migration from ldap

Marc Muehlfeld samba at marc-muehlfeld.de
Mon Nov 11 10:17:22 MST 2013


Hello,

Am 11.11.2013 11:20, schrieb mourik jan heupink:
> I noticed that only the basic openldap attributes were migrated using
> classicupgrade from ldap on samba4 (4.1) We're missing many things like
> 'mail', 'givenName', 'jpegPhoto', etc.
>
> I searched bugzilla, and found
> https://bugzilla.samba.org/show_bug.cgi?id=9008
>
> Does anyone know if this will be implemented any time soon? I'm guessing
> there are many networks like ours that use openldap for all kinds of
> stuff, and would like to slowly move towards samba4...?

You can simply work around that. After the migration:

- Configure your openLDAP to listen on a different port than 389
- Start openLDAP again
- Write a simple script that loops through all accounts on your DC. 
Inside this loop you retrieve the required attributes of these accounts 
from openLDAP and insert them with ldbmodify to AD.
- Shutdown openLDAP

Sounds more difficult than it is. 15 mins and it's done, if you know a 
scripting language.


Regards,
Marc




More information about the samba mailing list