Sunday, August 19, 2012

Lion server config … cont


  • Hello Again,

     

     

    I'm a little confused with step "6. Terminal>$ sudo scutil --set HostName server.domain.com".  I'm trying to name my server "serverm1.mydomainname.com I've run the following scutil commands:

     

    sudo scutil --get ComputerName     = serverm1

     

    sudo scutil --get LocalHostName  = serverm1

     

    sudo scutil --get HostName  =  HostName: not set

     

     

    On my last install of Lion server, it seemed that it was always reverting to serverm1s-mac-mini and I just want to make sure everthing is correct prior to installing the server app.

     

    Thanks,

     

    John
  • Level 1 (10 points)
    Thanks for the time and effort you've put in to produce this guide. It's been very helpful. One thing I would say is that if you wish to change your hostname after installing Server.app it is possible using the following steps.

     

    1) Open Server and go to Hardware -> Network. Click 'Edit' under Host Name and follow the change assistant to select a new hostname.

     

    To generate new certificates for the new hostname you will need to rebuild the Open Directory Master and the most reliable way I've found of doing this is as follows (however before doing the following you should export all users from Workgroup Manager, click on a user and choose 'export' from the file menu and save as a .xml, as they will be deleted when you perform the next step. Repeat for any groups and machines you have):

     

    2) Open Server Admin and go to Open Directory -> Settings -> General. Click 'Change' under Role and follow the change assistant to set up a standalone directory.

     

    Right now to rebuild your Open Directory server with the updated domain name and to new certificates

     

    3) Open Server and go to Hardware -> Settings. Click 'Edit' under SSL Certificates and select None.

     

    4) Open Terminal and change directory to '/usr/share/devicemgr/backend'. Now type run the command 'sudo ./wipDB.sh'.

     

    5) Quit and restart Server and got to Profile Manager and switch it on. The assistant will help you set it up a new Open Directory Master and create new certificates with your new domain name.

     

    6) Finally import or recreate your users either using Server or via the backups you created at step 1) by importing them into Workgroup Manager along with any user specific and machines specific rules.

     

    Hopefully this avoids a few people having to wipe / revert their Server installs.

No comments:

Post a Comment