summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/join.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/join.py b/source4/scripting/python/samba/netcmd/join.py
index 23ae412df5..34fd5dec3d 100644
--- a/source4/scripting/python/samba/netcmd/join.py
+++ b/source4/scripting/python/samba/netcmd/join.py
@@ -53,7 +53,10 @@ class cmd_join(Command):
site = "Default-First-Site-Name"
netbios_name = lp.get("netbios name")
-
+
+ if not role is None:
+ role = role.upper()
+
if role is None:
secure_channel_type = SEC_CHAN_WKSTA
elif role == "BDC":