summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorDan Sledz <dsledz@isilon.com>2009-02-10 15:50:39 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-02-11 19:39:18 -0800
commitd8c54fddda2dba3cbc5fc13e93431b152813892e (patch)
treea82478e640ba05c12b8026cf6f65ccc1485ee24f /source3/passdb
parent3b8a57e064250c6e46458e69ba156aa5d8c22059 (diff)
downloadsamba-d8c54fddda2dba3cbc5fc13e93431b152813892e.tar.gz
samba-d8c54fddda2dba3cbc5fc13e93431b152813892e.tar.bz2
samba-d8c54fddda2dba3cbc5fc13e93431b152813892e.zip
s3: Change behavior when seeing an unknown domain.
After a lot of testing against various Windows servers (W2K, W2K3, W2K8), within an AD domain it seems that unknown domains will only be translated to the local account domain, not the netbios name of the member server's domain. This makes samba act more like Windows.
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index d26a667f44..c526a175f2 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -27,25 +27,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB
-/******************************************************************
- get the default domain/netbios name to be used when
- testing authentication. For example, if you connect
- to a Windows member server using a bogus domain name, the
- Windows box will map the BOGUS\user to DOMAIN\user. A
- standalone box will map to WKS\user.
-******************************************************************/
-
-const char *my_sam_name(void)
-{
- /* standalone servers can only use the local netbios name */
- if ( lp_server_role() == ROLE_STANDALONE )
- return global_myname();
-
- /* Windows domain members default to the DOMAIN
- name when not specified */
- return lp_workgroup();
-}
-
/**********************************************************************
***********************************************************************/