mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
samba-tool: Return correct result for _get_user_realm_domain()
We were returning the realm and the domain in the wrong order. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
52f9629408
commit
3dccf63e82
@@ -41,12 +41,12 @@ def _get_user_realm_domain(user):
|
||||
if m:
|
||||
domain = m.group(1)
|
||||
baseuser = m.group(2)
|
||||
return (baseuser.lower(), domain.upper(), realm)
|
||||
return (baseuser.lower(), realm, domain.upper())
|
||||
m = re.match(r"(\w+)@(\w+)", user)
|
||||
if m:
|
||||
baseuser = m.group(1)
|
||||
realm = m.group(2)
|
||||
return (baseuser.lower(), domain, realm.upper())
|
||||
return (baseuser.lower(), realm.upper(), domain)
|
||||
|
||||
|
||||
def netcmd_dnsname(lp):
|
||||
|
||||
Reference in New Issue
Block a user