jonasmn

Q: I can not login on a network account from another computer

Since the last two or three updates of Server 4 I can not longer login on a network account from another computer. I can login to the network account on the server computer, the network accounts are visible on the login screen on other computers in the intranet, but I get an error when I try to login on them. Also backing up with Time Machine as a network user (hard disk connected to the server), does not work due to login problems for the network users. The address book server does not work either, so the address books do not get synchronized. What is wrong?

Mac mini, OS X Server, Running Server 4

Posted on Jul 21, 2015 1:06 AM

Close

Q: I can not login on a network account from another computer

  • All replies
  • Helpful answers

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Jul 21, 2015 6:41 AM in response to jonasmn
    Level 10 (207,995 points)
    Applications
    Jul 21, 2015 6:41 AM in response to jonasmn
  • by jonasmn,

    jonasmn jonasmn Jul 22, 2015 5:51 AM in response to Linc Davis
    Level 1 (9 points)
    Servers Enterprise
    Jul 22, 2015 5:51 AM in response to Linc Davis

    That is not the problem. I had never loged in to a network account on the server before, I just did it now before I started this thread, to check that everything was ok with user name, passord, etc. I have now restarted the server and tried to login to a network account again from a computer on the intranet, and the problem persists, I can see the network user in the login window, but I can not login to it, but get an error message. E-mail works fine for the same user by the way.

  • by Linc Davis,Solvedanswer

    Linc Davis Linc Davis Jul 22, 2015 7:17 AM in response to jonasmn
    Level 10 (207,995 points)
    Applications
    Jul 22, 2015 7:17 AM in response to jonasmn

    Many Open Directory problems can be resolved by taking the following steps. Test after each one, and back up all data before making any changes.

    1. The OD master must have a static IP address on the local network, not a dynamic address. It must not be connected to the same network with more than one interface; e.g., Ethernet and Wi-Fi.

    2. You must have a working DNS service, and the server's hostname must match its fully-qualified domain name. To confirm, select the server by name in the sidebar of the Server application window, then select the Overview tab. Click the Edit button on the Host Name line. On the Accessing your Server sheet, Domain Name should be selected. Change the Host Name, if necessary. The server must have at least a three-level name (e.g. "server.yourdomain.com"), and the name must not be in the ".local" top-level domain, which is reserved for Bonjour.

    3. The primary DNS server used by the server must be itself, unless you're using another server for internal DNS. The only DNS server set on the clients should be the internal one, which they should get from DHCP if applicable.

    4. If you have accounts with network home directories, make sure the URL's are correct in the user settings. A return status of 45 from the authorizationhost daemon in the log may mean that the URL for mounting the home directory was not updated after a change in the hostname. If the server and clients are all running OS X 10.10 or later, directories should be shared with SMB rather than AFP.

    5. Follow these instructions to rebuild the Kerberos configuration on the server.

    6. If you use authenticated binding, check the validity of the master's certificate. The common name must match the hostname and domain name. Deselecting and then reselecting the certificate in Server.app has been reported to have an effect in some cases. Otherwise delete all certificates and create new ones.

    7. Unbind and then rebind the clients in the Users & Groups preference pane. Use the fully-qualified domain name of the master.

    8. Reboot the master and the clients.

    9. Don't log in to the server with a network user's account.

    10. Disable any internal firewalls in use, including third-party "security" software.

    11. If you've created any replica servers, delete them.

    12. If OD has only recently stopped working when it was working before, you may be able to restore it from the automatic backup in /var/db/backups, or from a Time Machine snapshot of that backup.

    13. If there are slapd errors in the log, try the following steps.

    Turn off Open Directory in the Server app.

    Enter in a shell:

    cd /var/db/openldap

    sudo -s

    db_recover -c -h authdata

    db_recover -c -h openldap-data

    Turn Open Directory back on.

    14. Reset the password policy database:

    sudo pwpolicy -clearaccountpolicies

    15. As a last resort, export all OD users. In the Open Directory pane of Server, delete the OD server. In some cases, you may have to use the shell to delete the server. Then recreate it and import the users. Ensure that the UID's are in the 1001+ range.

  • by jonasmn,

    jonasmn jonasmn Jul 23, 2015 9:40 AM in response to Linc Davis
    Level 1 (9 points)
    Servers Enterprise
    Jul 23, 2015 9:40 AM in response to Linc Davis

    Hi,

     

    Thank you for an excellent problem solver. After making adjustments in steps 2, 3 and 4 it all started working again. Login in, adress book synchronization etc.

     

     

    Regards

    Jonas