substitution of %D %U variables in 'template homedir' config option does not work as documented. patch attached.
Created attachment 9526 [details] fix for this big
Andrew, this is about the source4 winbind. How do you want to deal with it?
some explanations: i have samba DC with rfc2307 attributes (uidNumber, gidNumber, loginShell) and unixHomeDirectory. i use idmap_ldb:use rfc2307 = yes home directories: /home/<realm>/<user> roaming profiles: /home/<realm>/<user>/.winprofile unix user name: <user>@<realm> <realm> is lowercased. i try to configure it as (test with win7 client) ---------------------------------------------- [Home] path = /home/dom.domain.ru read only = no [Profiles] path = /home/dom.domain.ru/%U/.winprofile read only = no ---------------------------------------------- home directory is ok. profiles are almost. they work although in log i see strange messages - %U can be substituted as win7 computer name with _ at end. in documentation in section where there are examples of using %U it is supposed that %U has a stable value. i'm concerned only about description of %U in VARIABLE SUBSTITUTIONS section. i get the result of %U as documented (the value is unstable). in searching of more stable solution i came to: [Profiles] path = %H/.winprofile read only = no but %H is /home/DOM/<user> so we came to template homedir = /home/dom.domain.ru/%U (tested via wbinfo -i <user> . i have not run the real test with win7 client since it is weekend now) [it seems winbind nss info = rfc2307 can't be used in such construction when this all is on DC]
Garming, could you please look into this issue?
Is this a showstopper for 4.2.0?
This is not a 4.2.0 blocker, it already be fixed by using the source3 winbindd implementation by default.
I assume this should be closed?