Bug 2687 - Problem with expansion of environment variables with ldapsam backend
Problem with expansion of environment variables with ldapsam backend
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
x86 Windows NT
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-05-07 08:44 UTC by Ottmar Kotheimer
Modified: 2005-05-18 01:55 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ottmar Kotheimer 2005-05-07 08:44:02 UTC
In Samba 3.0.11 expansion of variables like %L in the profile path, logon home
and logon script values when using either tdbsam or ldapsam was fixed.

But now the expansion of the environment variable %LOGONSERVER% is not working
anymore: If e.g. the server´s netbios name is SERVER, a sambaProfilePath entry
%LOGONSERVER%\profile\user now is expanded to SERVEROGONSERVER\profile\user and
not to \\SERVER\profile\user as desired.

Apparently the server just expands %L to the server´s netbios name, then appends
the reminder OGONSERVER  and does not recognize that the whole expression
%LOGONSERVER% is an environmental variable. I would expect, that all
environmental variables beginning with characters used in internal variables
(like L, U, N, etc.) will also be affected.

I was able to reproduce this behavior with samba 3.0.11 and 3.0.14a using
ldapsam. Samba 3.0.10 or older did not show this problem.
Comment 1 Karim Ayari 2005-05-18 01:55:34 UTC
With samba 3.0.14a, I have the same probleme with %Typesession% interpreted by
samba as <date of day>ypesession%.