Force refresh Open Directory records on a slave Os X Server (Yosemite)

I noticed that when modifying user records in Server.app 5.x, like adding a user to a group, the file server did not get the update instantly but after some time (hours).

this was mostly really true for smb connections but afp connexions are too impacted.

the command is really simple, simply wipe the OpenDirectory cache on the slave server and voila.

sudo odutil reset cache

Then try to reconnect with the modified user, and there you go, you’ve forced a refresh.

Tested on 10.10.3 Os X Server (OD master) and 10.10.5 Os X Server (File sharing)

Olivier
About

Product and graphic designer turned to be a Mac SysAdmin.

Posted in Admin, Mac, tips tricks scripts Tagged with: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>