The sam.ldif and winbind.ldif generation code now works as well. I'll be working on generating the new smb.conf next.
One of the things that worries me is the fact that I can generate so few of the Samba4 'user' and 'group' attributes. Probably need to borrow some code from the current provisioning script to fix that up.
I'm wondering whether I should do some of the upgrade using EJS, so it can be integrated into SWAT easily...Go Top