Jorick Astrego
2004-Dec-28 13:43 UTC
[Samba] Migrating from Samba 2.2.8 to 3.x on different machine
Hi all! Samba 2.x has been running for a while now but now it's time to upgrade. I tried everything (Google, Books, HOWTO's, etc.) but for the last month I've been unable to perform a succesfull migration. Maybe I try to do to many things at once but I cannot get the following to work: - Move the samba domain from a 2.x server to 3.x on a different machine - switch to a ldap backend - change the domain name (our company name has changed) - rename all the users from firstname to first initial + lastname I installed and configured a 3.x server on the machine with OpenLdap as backend, then I tried to join the old Samba domain so I could use net vampire but I get the message: error setting trust account password: NT_ACCESS_DENIED When I try net vampire I get the message: Failed to fetch Domain database: NT_STATUS_UNSUCCESSFUL Regards, Jorick Astrego IBM Certified System Administrator - Lotus Notes and Domino Quality On-Line? Hengelosestraat 501 P.O. Box 1414 NL-7500 BK Enschede the Netherlands Phone +31 53 4809090 Fax +31 53 4342040 Internet http://www.qualityonline.com
Spike Burkhardt
2004-Dec-28 16:06 UTC
[Samba] Migrating from Samba 2.2.8 to 3.x on different machine
Jorick, If you're having problems then I'd scale back on all the changes. Basically I'd install the 3.0.10 software, copy over the smb.conf and first see if that works. I'd then do the domain name, switch to ldap & finally to the rename. This last part depends on whether ldap has the desired username. See below for how I'd attack the problem. Jorick Astrego wrote:> Hi all! > > Samba 2.x has been running for a while now but now it's time to upgrade. I > tried everything (Google, Books, HOWTO's, etc.) but for the last month > I've been unable to perform a succesfull migration. Maybe I try to do to > many things at once but I cannot get the following to work: > > - Move the samba domain from a 2.x server to 3.x on a different machineDo this first. * Install 3.0.10 on the new machine. * Copy the smb.conf file from the old machine to the new machine. * Startup and test. * If it fails, post the results with the appropriate log entries and your smb.conf file. - switch to a ldap backend Do this third. * After the first two steps are successfully completed, populate LDAP with the appropriate info without the renaming of accounts. * Make your smb.conf changes. This could be where changing company names would make a difference. You'll need to know this information such as OU, admin password... * Verify that samba is connecting to the LDAP server. Even at the lowest levels of log messages, you should see a "connected" message. * After successfully connecting and mounting a share with LDAP add the new usernames without taking out the old ones.> > - change the domain name (our company name has changed)Do this second. Are you saying that the workgroup has changed? If so then change it in smb.conf. If the workgroup hasn't changed then there is no need.> > - rename all the users from firstname to first initial + lastname > > I installed and configured a 3.x server on the machine with OpenLdap as > backend, then I tried to join the old Samba domain so I could use net > vampire but I get the message: error setting trust account password: > NT_ACCESS_DENIEDDo this last. * Instead of renaming the LDAP usernames, add the new usernames. * Mount a share with the new username * If not successful then post the results with the appropriate log entries and your smb.conf file HTH. spike> > > When I try net vampire I get the message: Failed to fetch Domain database: > NT_STATUS_UNSUCCESSFUL > > Regards, > > Jorick Astrego > IBM Certified System Administrator - Lotus Notes and Domino > > Quality On-Line? > Hengelosestraat 501 > P.O. Box 1414 > NL-7500 BK Enschede > the Netherlands > Phone +31 53 4809090 > Fax +31 53 4342040 > Internet http://www.qualityonline.com > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Andrew Bartlett
2004-Dec-30 06:41 UTC
[Samba] Migrating from Samba 2.2.8 to 3.x on different machine
On Tue, 2004-12-28 at 14:40 +0100, Jorick Astrego wrote:> Hi all! > > Samba 2.x has been running for a while now but now it's time to upgrade. I > tried everything (Google, Books, HOWTO's, etc.) but for the last month > I've been unable to perform a succesfull migration. Maybe I try to do to > many things at once but I cannot get the following to work: > > - Move the samba domain from a 2.x server to 3.x on a different machine > - switch to a ldap backend > - change the domain name (our company name has changed)You will loose all your machine account trusts in this process. NT Domains cannot be renamed, without rejoining all the machines.> - rename all the users from firstname to first initial + lastname> I installed and configured a 3.x server on the machine with OpenLdap as > backend, then I tried to join the old Samba domain so I could use net > vampire but I get the message: error setting trust account password: > NT_ACCESS_DENIEDVampire is only for Windows servers. You cannot vampire a Samba domain - and there is no need anyway, you have the user database in an open format already, Look into the account database migration tools (pdbedit -i -e) in Samba 3.0 after you first get Samba 3.0 managing your new domain. Also read the documentation on maintaining a consistent domain SID during the process. Andrew Bartlett -- Andrew Bartlett <abartlet@samba.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20041230/6bd875dd/attachment.bin