When using the ldap backend neither logon path/home from smb.conf nor the attributes sambaProfilePath etc. are parsed for macros. The client gets paths like \\server\%u\profile from the pdc.
Created attachment 208 [details] Expand %N in talloc_sub_basic for passdb backend usage This bug report is not entirely correct. The problem here is that we do not expand all the macros in passdb. Especially %N is not expanded. We should really do it, as it is in the default profile path. See attached patch.
Use %U in place of %u in logon XXX parameters. Applying Volker's patch and closing it out.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.