summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-10-13 22:21:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-10-14 00:22:56 +0200
commit36e3c15f54f1afdde662e45f11ae4b819fbad504 (patch)
tree278ecc4fc0b19e571f8add09513d0b56c69bb55f /source4
parentb0d89e5c053c109d0a8c6d933b824a535a76251d (diff)
downloadsamba-36e3c15f54f1afdde662e45f11ae4b819fbad504.tar.gz
samba-36e3c15f54f1afdde662e45f11ae4b819fbad504.tar.bz2
samba-36e3c15f54f1afdde662e45f11ae4b819fbad504.zip
python: Remove extra newlines.
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)