From 02bc90ea442f5d115df17de0ebd0bbfdf214c1a5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Dec 1997 04:20:39 +0000 Subject: change the "username map" option to allow the user to stop the processing part way through the file if a match is found. If a line starts with ! and a match is made by that line then processing stops. This allows better wildcard handling. (patch from Anselm.Kruis@Physik.Uni-Muenchen.DE) (This used to be commit af57bc05fe0f248aaef329358c583abcffe1657c) --- docs/manpages/smb.conf.5 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/manpages') diff --git a/docs/manpages/smb.conf.5 b/docs/manpages/smb.conf.5 index 1145de1263..147b3dce9f 100644 --- a/docs/manpages/smb.conf.5 +++ b/docs/manpages/smb.conf.5 @@ -3524,6 +3524,11 @@ then continues with the next line. If any line begins with a '#' or a ';' then it is ignored +If any line begins with an ! then the processing will stop after that +line if a mapping was done by the line. Otherwise mapping continues +with every line being processed. Using ! is most useful when you have +a wildcard mapping line later in the file. + For example to map from the name "admin" or "administrator" to the UNIX name "root" you would use @@ -3544,6 +3549,14 @@ quotes around the name. For example: would map the windows username "Andrew Tridgell" to the unix username tridge. +The following example would map mary and fred to the unix user sys, +and map the rest to guest. Note the use of the ! to tell Samba to stop +processing if it gets a match on that line. + + !sys = mary fred + guest = * + + Note that the remapping is applied to all occurrences of usernames. Thus if you connect to "\e\eserver\efred" and "fred" is remapped to "mary" then you will actually be connecting to -- cgit