Difference between revisions of "Cool Solution - Set profile path"

From Univention Wiki

Jump to: navigation, search
(Die Seite wurde neu angelegt: „{{Version|UCS=3.0}} After the migration to Samba 4 the profile path is saved on a per user base. To convert mass set the profile path of existing users to a serve…“)
 
(Spell checked)
Line 1: Line 1:
 
{{Version|UCS=3.0}}
 
{{Version|UCS=3.0}}
After the migration to Samba 4 the profile path is saved on a per user base. To convert mass set the profile path of existing users to a server, you can find a script in the cool-solutions repository.
+
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.
  
 
{{Cool Solutions Repository}}  
 
{{Cool Solutions Repository}}  
Line 6: Line 6:
 
== Installation ==
 
== Installation ==
  
After including the cool-solutions repository you can install the packet as root with  
+
After including the cool-solutions repository you can install the package as root with:
 
  univention-install univention-set-samba4-profile-path
 
  univention-install univention-set-samba4-profile-path
  
 
== Mass Converting Existing Users ==
 
== Mass Converting Existing Users ==
The included script allows you to set the profile path for all existing users. The following command can be used as root to set the profile path
+
The script univention-set-samba4-profile-path.sh 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/univention-set-samba4-profile-path.sh profile-server-fqdn
 
  /usr/lib/univention-set-samba4-profile-path/univention-set-samba4-profile-path.sh profile-server-fqdn
  
Line 16: Line 16:
  
  
== Changing a single user ==
+
== Change a Single User ==
To set the profile path for a single user issue the following command as root user on the dcmaster
+
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"
+
  univention-directory-manager users/user modify --dn "<user dn>" --set 'profilepath=\\<server name>\path\to\profile'
Please notice that all special characters need to be escaped e.g. \ becomes \\
 
  
To remove the the profile path root can use the following command
+
To remove the the profile path use the following command:
  univention-directory-manager users/user remove --dn "<user dn>" --set "profilepath=\\\\<server name>\\path\\to\\profile"
+
  univention-directory-manager users/user remove --dn "<user dn>" --set 'profilepath=\\<server name>\path\to\profile'

Revision as of 09:06, 17 January 2012

Produktlogo UCS Version 3.0

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.

Template:Cool Solutions Repository

Installation

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 univention-set-samba4-profile-path.sh 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/univention-set-samba4-profile-path.sh profile-server-fqdn

Afterwards Samba 4 will look for the profile of all users on the given server in the /home/"username"/profile


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 remove --dn "<user dn>" --set 'profilepath=\\<server name>\path\to\profile'
Personal tools