summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/substitute.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index af30e900ac..f25e5468aa 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -386,13 +386,18 @@ void standard_sub_basic(const char *smb_name, char *str,size_t len)
string_sub(p,"%i", client_socket_addr(),l);
break;
case 'L' :
- if (local_machine_name && *local_machine_name)
+ if (local_machine_name && *local_machine_name) {
+ if (IS_DC)
+ string_sub(p, "\%LOGONSERVER\%", local_machine_name, l);
string_sub(p,"%L", local_machine_name,l);
- else {
+ } else {
pstring temp_name;
pstrcpy(temp_name, global_myname());
strlower_m(temp_name);
+ if (IS_DC)
+ string_sub(p, "\%LOGONSERVER\%", temp_name,l);
+
string_sub(p,"%L", temp_name,l);
}
break;