8 Replies Latest reply: Jun 20, 2012 1:41 PM by solwatts
solwatts Level 1 Level 1 (10 points)

Hello,

I've recently upgraded to Mac OS Lion Server, and I'm having a big problem that's keeping me from finishing my last bit of work on a project.  I've been trying to create network users so that they can sign in on any computer, and access their files via the server, but I've been told time and time again to create a Directory Administrator.

 

Screen Shot 2012-05-05 at 3.46.14 PM.png

When I try to create one, I get this error, and I have no idea how to fix this. Any ideas?

  • 1. Re: Can't create a Directory Administrator
    gracoat Level 3 Level 3 (660 points)

    DNS issue.

     

    In the terminal, type:

     

    sudo changeip -checkhostname

     

    Read carefully what it says.

    I believe it'll give an example of what you need to type to fix it.

    If it doesn't, copy and paste the results of the command here and we'll try to help out.  Usually that kind of problem is pretty simple to fix.

    -Graham

  • 2. Re: Can't create a Directory Administrator
    solwatts Level 1 Level 1 (10 points)

    I got my HostName, and primary IP address, but where should I place this into the Server.app dialog (In case you haven't noticed, I'm new to Mac Server )?

  • 3. Re: Can't create a Directory Administrator
    John.Kitzmiller Level 3 Level 3 (870 points)

    You don't place it into the dialog. The command is to check to make sure DNS is set up properly for your server.

     

    Please post the output of the command and we'll try to help you.

  • 4. Re: Can't create a Directory Administrator
    solwatts Level 1 Level 1 (10 points)

     

     

    WARNING: Improper use of the sudo command could lead to data loss

    or the deletion of important system files. Please double-check your

    typing when using sudo. Type "man sudo" for more information.

     

     

    To proceed, enter your password, or type Ctrl-C to abort.

     

     

    Password:

     

     

    Primary address     = 192.168.1.139

     

     

    Current HostName    = TLAB-GLOBAL.COM

     

     

    The DNS hostname is not available, please repair DNS and re-run this tool.

     

     

    dirserv:success = "success"

    TLAB-GLOBAL:~ drclarencenixon$

     

                                 

     

  • 5. Re: Can't create a Directory Administrator
    gracoat Level 3 Level 3 (660 points)

    Okay...  You'll have to run the changeip command again.  But first consider a few things.

    Your server needs a name.  Call it server.  (though you could call it whatever you want)

    Your server needs a static IP address.  Call it 192.168.1.100

    You server needs a fully qualified domain name.  Call it server.tlab-global.com.  (note the dot at the end.  I'm not ending a sentence here!)

     

    Remember those things!  You'll need them in the future.

     

    Does your computer have DNS running?

    In terminal type:

    sudo serveradmin status DNS

     

    If not, you'll need to set it up. That's a deeper topic, and I'm REALLY hoping you have it set up already.

    The only way to set up DNS is in the Server Admin.app  NOT Server.app  You can download this from apple.  Just google "server admin tools 10.7"

     

    Find out what the router address is on your network.  (it looks like it's 192.168.1.1) but some routers are weird and choose the top of the subnet for an IP.

    Find out what the router address is by lookin in System Preferences under network.  Click advanced, click the TCP/IP tab.

    Remember it! (or write it down)

     

    It appears that your computer is running on the 192.168 local addresses.  So let's assume your IP should be 192.168.1.100  NOT 1.139.  (139 is pretty unusual, but if you really want to keep it you can)

     

    You'll need to know what the current hostname for your computer is.  In terminal type: 

    host 192.168.1.139 

     

    The output from the command will look a bit like this:  192.168.xxx.xxx.in-addr.arpa domain name pointer server.example.com.

    The end of the line is the current hostname. 

     

    Judging from the output from your changeip command from your post, you need to 'cement' your hostname into the server's various services.  It looks like you want to use server.tlab-global.com.  Where 'server' is the name of your server.

     

    With all this info you type the following command into terminal:

     

    sudo changeip 192.168.1.139 192.168.1.100 tlab-global.com server.tlab-global.com

     

    That command says that you're changing the IP address of your server from 192.168.1.139 to 192.168.1.100.  It also says that you want to change your hostname from tlab-global.com to server.tlab-global.com.

     

    If your current hostname and new hostname need to be the same, that's not a problem.  Enter it twice.

     

    Once you've done that, you need to ensure that your IP address in system prefs is 1.100

    Open system prefs.

    Click the network button

    click the advanced button

    Click the TCP/IP

    Select Manually from the "configure IPv4" pull down menu.

    Enter the following in the IP address field.

    192.168.1.100

    Enter the following in the subnet field

    255.255.255.0

    Enter the Router's IP address in the router field.

     

    Lastly, change the DNS entry for your server to match the server's new IP address if it isn't set already.

    In Server Admin:

    Select your server.

    Click the DNS button.

    Click the zones button at the top

    Click the 'down arrow' triangle to show the hostnames in your zone tlab-global.com.

    Select your server's name in the list below.

    Change the IP address below so it shows 192.168.1.100

     

    Save and close server admin.

     

    Run the following command in terminal:

    sudo changeip -checkhostname

     

    If you get something that says "the names match, there's nothing to change" then you've done it right, and you should be able to set your directory administrator's name now.

     

    Lots of info, and lots of things to go wrong.  I've double checked my instructions and find that they work as long as my english is understandable.  I hope it works out for you!

    Let us know!

     

    -Graham

  • 6. Re: Can't create a Directory Administrator
    dahelms Level 1 Level 1 (0 points)

    I was getting this same message when trying to setup my server to provide RADIUS support to my Airport Extreme.  After configuring my server to connect wirelessly to the Airport device, I had to select my server on the Server sidebar and edit the host name on the Network tab.  After that completed and tied the host name to the IP on my wireless adapter, I stopped getting this message.

     

    Now when I select the Airport device on the Server sidebar, select "Allow user name and password login over Wi-Fi.  Users will be able to log in to your wireless network using RADIUS", and go through the set up Open Directory dialog, I now get the message saying this computer is already configured to manage network accounts.  It cannot be configured again. 

  • 7. Re: Can't create a Directory Administrator
    solwatts Level 1 Level 1 (10 points)

    Okay, I followed your instructions except for the last one. The server is beginning to function properly again, but I just have one last question.  In your response you said

     

     

     

    Lastly, change the DNS entry for your server to match the server's new IP address if it isn't set already.

    In Server Admin:

    Select your server.

    Click the DNS button.

    Click the zones button at the top

    Click the 'down arrow' triangle to show the hostnames in your zone tlab-global.com.

    Select your server's name in the list below.

    Change the IP address below so it shows 192.168.1.100

     

     

    I don't see a "DNS" button in Server Admin. 

  • 8. Re: Can't create a Directory Administrator
    solwatts Level 1 Level 1 (10 points)

    Whoops! Sorry about that last post (user error).  I was trying to use Server.app instead of Server Admin!