s4-net: role should be case insensitive for join
authorAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 01:36:29 +0000 (11:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 05:55:39 +0000 (15:55 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/netcmd/join.py

index 23ae412df5d12d66d346db630f373cd4ed3352b2..34fd5dec3d978780e47d81155d9ee1f46723f57d 100644 (file)
@@ -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":