Cool Solution - Set profile path

From Univention Wiki

Revision as of 13:46, 17 April 2018 by Kenkel (talk | contribs)
Jump to: navigation, search
Produktlogo UCS Version 4.2

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Packages provided by a Cool Solutions Repository are built by Univention, but will not be maintained. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.
Note: This article is not yet reviewed.

After the migration to Samba 4 the profile path is saved on a per user base. To mass convert the profile path of existing users to one server, you can find a script in the Cool Solutions repository.


After including the Cool Solutions repository you can install the package as root with:

univention-install univention-set-samba4-profile-path

Mass Converting Existing Users

The script allows you to set the profile path for all existing users. The following command, executed as root, can be used to set the profile path

/usr/lib/univention-set-samba4-profile-path/ profile-server-fqdn <ou>

Afterwards Samba 4 will look for the profile of all users (in the optionally given OU) on the given server in /home/"UserName"/windows-profiles

Change a Single User

To set the profile path for a single user run the following command as root user on the UCS Master:

univention-directory-manager users/user modify --dn "<user dn>" --set 'profilepath=\\<server name>\path\to\profile'

To remove the the profile path use the following command:

univention-directory-manager users/user modify --dn "<user dn>" --set 'profilepath='
Personal tools