1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

python: Remove extra newlines.

This commit is contained in:
Jelmer Vernooij
2011-10-13 22:21:48 +02:00
parent b0d89e5c05
commit 36e3c15f54

View File

@ -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)