Mavericks - Server 3.2.2: unable to add user or change passwords

Hi Everyone,


I'm using Server 3.2.2 on OS X 10.9.5 on a Mac Pro. After a freeze and a reboot, I was unable to either change user passwords or add a user from within Server.


  • Trying to change a password using the dropdown-menu gave me a pop-up window where I could enter a new password, but confirming the password didn't work, the window wouldn't go away (only after clicking on cancel), and the password wasn't changed.
  • Also, adding a user didn't work: "unable to create secure connection with credentials from existing connection: password change denied"
  • In workgroup manager, it says "not authenticated", even though I logged in using the admin account.


I've already tried rekerberizing, I made a backup of my OD-Master, removed the OD-Master, created an empty OD-Master, removed that one, restored my old OD-Master. All that didn't work.


I'm not sure what is next... Anyone any ideas??

Thanks!

Mac Pro, OS X Mavericks (10.9.5), Server 3.2.2

Posted on Sep 10, 2015 5:38 AM

Reply
13 replies

Sep 10, 2015 7:28 AM in response to Linc Davis

Thanks for your reply.


I tried rekerberizing already: didn't work.


I've now also tried the procedure in your first link. Unfortunately, I don't get past step 6: "6. Add a test user and try changing the password to verify it is all working". It is not working... I get the exact same error message as before.

When I make a new OD-Master, it says it was successful, but that there also was "an error". No specification on what kind of error!

Regarding your second link: one of the solutions is to remake all the users; not really looking forward to that.

I do not really understand what I have to do in the solution with the new certificates.. There is no mention of how to reconnect everything to your old certificates.

Sep 11, 2015 12:41 AM in response to Linc Davis

Logs! At least, the part that looked important..


Sep 11 09:32:33 <server-address> vpnaddkeyagentuser[36878]: Couldn't set password for user vpn_737c38328ac1 at path /LDAPv3/127.0.0.1: Authentication server refused operation because the current credentials are not authorized for the requested operation.

Sep 11 09:32:33 <server-address> Server[36747]: An error occurred while creating the VPN key agent user in new directory server on <server-name>: Error Domain=servermgr_vpn Code=255 "" UserInfo=0x61800026e580 {NSLocalizedDescription=}


Not sure if you need anything else....

Sep 11, 2015 6:04 AM in response to Linc Davis

Ah, thanks.

I did that, and the command worked. However, the problem remains.


I tried removing my OD-Master and building a new Master, but again that gave an error message, and my logs said it was the same error.

I tried removing my OD-Master, running the command you gave (why do I have to "Enter admin name for node" four times?), and tried building a new master. Same results.

Sep 11, 2015 6:41 AM in response to jumelage

it now seems that the vpnaddkeyagentuser command did not work after all. It asks me to enter an admin name for node. I have tried my admin username with the corresponding password. Terminal doesn't give ma an error, it just asks the same question again 3 times, but the log says:

11.09.15 15:28:10,790 vpnaddkeyagentuser[50093]: Couldn't authenticate to the directory /LDAPv3/127.0.0.1. Error: Credentials could not be verified, username or password is invalid.


What do I enter as admin name at this command?

Sep 11, 2015 7:42 AM in response to Linc Davis

Already tried that. I could successfully change the OD Admin password, but to no avail.


Right now, I also don't really know anymore what I need to do when. What are the logical steps here? What do I do first?


I really have no idea what is really wrong here, and I know almost nothing about the whole Server program (I only took over the admin for our server yesterday, the guy that used to do it is not around anymore...)

Sep 11, 2015 7:52 AM in response to jumelage

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 or in the file-sharing protocol (from AFP to SMB or vice versa.) 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.

In the case of a self-signed certificate, create a trust profile in Profile Manager and deploy it on the clients.

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.

Sep 13, 2015 10:20 AM in response to jumelage

Had the same problem and was able to fix it by making sure my third part certificate (GeoTrust QuickSSL Premium) was trusted in the Certificates section in Server.app.


Here's what I did.


1) Backed up Open Directory


2) Exported certificate from Keychain Access as .p12


3) Destroyed Open Directory


4) Created new empty Open Directory. Was still not able to create Local Network Users!


5) Discovered that the certificate was only listed when "Show all certificates" was selected in Certificates section. This was the key!


6) Found a GeoTrust GA certificate in Keychain Access that was not trusted and deleted it.


7) Destroyed Open Directory


8) Recreated Open Directory from backup in 1)


9) Reimported certificate from backup in 2) and now it showed up as trusted in the Certificates section and securing all services incl. Open Directory


I'm able to create Local Network Users and change passwords again 🙂


Hope this helps

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mavericks - Server 3.2.2: unable to add user or change passwords

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.