When an admin enters some client-expanded variable like for example %G_osver% into the fields homedir, logon path or profile path, these variables are modified on the fly by the Samba DC code. So %G ends up at the client expanded as primary-group_osver% which is different from what the admin typed in. This is due to the fact that explictly set fields are sent through standard_sub_basic, so the macro expansions take place. Volker
Created attachment 1599 [details] Add passdb:expand_explicit This adds the parameter passdb:expand_explicit that defaults to no, fixing the unexpected behaviour. If installations depend on expanding %-Macros in explicitly set fields, passdb:expand_explicit can be set to yes. Volker
This patch has been checked in. Althought we need to have a non-ambiguous syntax.