summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/common.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/common.py b/source4/scripting/python/samba/netcmd/common.py
index a4ebdd4329..234fad3c03 100644
--- a/source4/scripting/python/samba/netcmd/common.py
+++ b/source4/scripting/python/samba/netcmd/common.py
@@ -24,7 +24,6 @@ from samba.dcerpc import nbt
from samba.net import Net
-
def _get_user_realm_domain(user):
""" get the realm or the domain and the base user
from user like:
@@ -47,14 +46,12 @@ def _get_user_realm_domain(user):
return (baseuser.lower(), domain, realm.upper())
-
def netcmd_dnsname(lp):
'''return the full DNS name of our own host. Used as a default
for hostname when running status queries'''
return lp.get('netbios name').lower() + "." + lp.get('realm').lower()
-
def netcmd_finddc(lp, creds):
'''return domain-name of a writable/ldap-capable DC for the domain.'''
net = Net(creds=creds, lp=lp)