Re: [SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-1045-gfc02c3b0

2009-02-21 Thread Volker Lendecke
On Fri, Feb 20, 2009 at 09:39:32PM -0600, Steven Danneman wrote:
 - Log -
 commit fc02c3b0890a9549989bb0aba16588026c6d6b43
 Author: Dan Sledz dan.sl...@isilon.com
 Date:   Fri Feb 13 12:28:57 2009 -0800
 
 Introduce a new passdb backend: pdb_onefs_sam
 
 Implements a custom backend for onefs that exclusively uses the wbclient
 interface for all passdb calls.
 It lacks some features of a standard passdb.
 In particular it's a read only interface and doesn't implement privileges.
 
 commit c383022f89a34b83039502cc58178498cc06370e
 Author: Dan Sledz dan.sl...@isilon.com
 Date:   Fri Feb 13 12:24:22 2009 -0800
 
 Introduce a new authentication backend auth_onefs_wb
 
 This new backend is custom tailored to onefs' unique requirements:
 1) No fallback logic
 2) Does not validate the domain of the user
 3) Handles unencrypted passwords

What about these is onefs specific? Why did you put onefs
into the names?

Volker


pgpyCd9Tr4juk.pgp
Description: PGP signature


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-1045-gfc02c3b0

2009-02-20 Thread Steven Danneman
The branch, master has been updated
   via  fc02c3b0890a9549989bb0aba16588026c6d6b43 (commit)
   via  c383022f89a34b83039502cc58178498cc06370e (commit)
   via  e311dcff2272968959b4268c2e7aad351443b191 (commit)
  from  2539d678f54d09577d5c86fae1d6d43175bfca96 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit fc02c3b0890a9549989bb0aba16588026c6d6b43
Author: Dan Sledz dan.sl...@isilon.com
Date:   Fri Feb 13 12:28:57 2009 -0800

Introduce a new passdb backend: pdb_onefs_sam

Implements a custom backend for onefs that exclusively uses the wbclient
interface for all passdb calls.
It lacks some features of a standard passdb.
In particular it's a read only interface and doesn't implement privileges.

commit c383022f89a34b83039502cc58178498cc06370e
Author: Dan Sledz dan.sl...@isilon.com
Date:   Fri Feb 13 12:24:22 2009 -0800

Introduce a new authentication backend auth_onefs_wb

This new backend is custom tailored to onefs' unique requirements:
1) No fallback logic
2) Does not validate the domain of the user
3) Handles unencrypted passwords

commit e311dcff2272968959b4268c2e7aad351443b191
Author: Dan Sledz dan.sl...@isilon.com
Date:   Tue Dec 9 08:29:26 2008 +

Allow building with an external libwbclient library

Introduce a new configure option --with-wbclient which specifies a
location to find a compatible libwbclient library to link against.  This
options is overwritten by --with-winbind

---

Summary of changes:
 source3/Makefile.in|9 +
 source3/auth/auth_onefs_wb.c   |  134 +
 source3/configure.in   |   80 ++--
 source3/passdb/pdb_onefs_sam.c |  433 
 4 files changed, 636 insertions(+), 20 deletions(-)
 create mode 100644 source3/auth/auth_onefs_wb.c
 create mode 100644 source3/passdb/pdb_onefs_sam.c


Changeset truncated at 500 lines:

diff --git a/source3/Makefile.in b/source3/Makefile.in
index 98ed810..6087fa0 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -685,6 +685,7 @@ AUTH_SAM_OBJ = auth/auth_sam.o
 AUTH_SERVER_OBJ = auth/auth_server.o
 AUTH_UNIX_OBJ = auth/auth_unix.o
 AUTH_WINBIND_OBJ = auth/auth_winbind.o
+AUTH_ONEFS_WB_OBJ = auth/auth_onefs_wb.o
 AUTH_SCRIPT_OBJ = auth/auth_script.o
 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
 
@@ -2343,6 +2344,10 @@ bin/winbi...@shlibext@: $(BINARY_PREREQS) 
$(AUTH_WINBIND_OBJ)
@echo Building plugin $@
@$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
 
+bin/onefs_...@shlibext@: $(BINARY_PREREQS) $(AUTH_ONEFS_WB_OBJ)
+   @echo Building plugin $@
+   @$(SHLD_MODULE) $(AUTH_ONEFS_WB_OBJ)
+
 bin/un...@shlibext@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
@echo Building plugin $@
@$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
@@ -2359,6 +2364,10 @@ bin/tdbs...@shlibext@: $(BINARY_PREREQS) passdb/pdb_tdb.o
@echo Building plugin $@
@$(SHLD_MODULE) passdb/pdb_tdb.o
 
+bin/onefs_s...@shlibext@: $(BINARY_PREREQS) passdb/pdb_onefs_sam.o
+   @echo Building plugin $@
+   @$(SHLD_MODULE) passdb/pdb_onefs_sam.o
+
 bin/smbpass...@shlibext@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
@echo Building plugin $@
@$(SHLD_MODULE) passdb/pdb_smbpasswd.o
diff --git a/source3/auth/auth_onefs_wb.c b/source3/auth/auth_onefs_wb.c
new file mode 100644
index 000..49de696
--- /dev/null
+++ b/source3/auth/auth_onefs_wb.c
@@ -0,0 +1,134 @@
+/*
+   Unix SMB/CIFS implementation.
+
+   Winbind authentication mechnism, customized for onefs
+
+   Copyright (C) Tim Potter 2000
+   Copyright (C) Andrew Bartlett 2001 - 2002
+   Copyright (C) Dan Sledz 2009
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see http://www.gnu.org/licenses/.
+*/
+
+#include includes.h
+
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_AUTH
+
+/* Authenticate a user with a challenge/response */
+
+static NTSTATUS check_onefs_wb_security(const struct auth_context 
*auth_context,
+  void *my_private_data,
+  TALLOC_CTX *mem_ctx,
+  const auth_usersupplied_info *user_info,
+  auth_serversupplied_info **server_info)
+{
+   NTSTATUS