summaryrefslogtreecommitdiff
path: root/source3/auth
AgeCommit message (Collapse)AuthorFilesLines
2011-07-04s3-build allow_undefined_symbols=False is the default nowAndrew Bartlett1-1/+0
2011-07-04s3-auth libauth no longer requires undefined symbolsAndrew Bartlett1-3/+1
2011-07-04s3-auth: Remove global smbd_server_conn from auth_unix.c.Andreas Schneider1-2/+10
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-auth: Pass the remote_address down to user_info.Andreas Schneider6-19/+86
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-auth: Added remote_address to ntlmssp server.Andreas Schneider2-2/+12
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-auth: Only reload the config file.Andreas Schneider1-1/+1
We only need to reload the config file. This removes a dependency to smbd. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-03s3: Remove a use of cli_errstrVolker Lendecke1-2/+3
All code above that might have failed sets result
2011-07-03s3-build Prepare to require fully defined modulesAndrew Bartlett1-3/+5
This specifies some more deps for our modules, and ensures that the subsystem that it links against is in fact a library, which will avoid issues with introducing duplicate symbols. Andrew Bartlett
2011-06-21lib/util Remove samba-util-common!Andrew Bartlett1-7/+7
All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
2011-06-15s3: Add debug level 0 warnings to make_new_server_info_guestVolker Lendecke1-2/+6
I've got a backtrace where this must have failed, but it is not clear why. If this fails, we should really complain because we can't start up. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jun 15 15:20:49 CEST 2011 on sn-devel-104
2011-06-15s3: Fix the return of make_new_server_info_guestVolker Lendecke1-1/+1
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett6-15/+15
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-06-09s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett13-17/+17
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2-5/+5
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-09s3:auth/auth_samba4.c - remove unused variableMatthias Dieter Wallnöfer1-1/+0
Reviewed-by: Tridge
2011-06-07s3-auth Use loadparm_init_s3() to get an lp_ctx for auth_samba4Andrew Bartlett1-15/+2
This avoids loading the smb.conf twice. Andrew Bartlett
2011-05-31s3:auth/proto.h: add _AUTH_PROTO_H_ guardMichael Adam1-0/+5
2011-05-31s3:auth/proto.h: add GPL/Copyright headerMichael Adam1-0/+31
2011-05-31s3-build: Move user_util.c into it's own subsystemAndrew Bartlett1-4/+6
2011-05-29s3: Use the correct guest_login field in auth_serverVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 13:57:21 CEST 2011 on sn-devel-104
2011-05-29s3: Use cli_connect_nb in auth_serverVolker Lendecke1-16/+4
2011-05-29s3: Fix a type-punned warningVolker Lendecke1-1/+1
2011-05-29s3: Check password server loop earlierVolker Lendecke1-4/+6
We do that in the loop for the ip address anyway
2011-05-25Fix numerous missing dependencies in WAF build scriptsSean Finney1-0/+7
With the recent consolidation of code between s3 and s4, a number of new dependencies have been implicitly introduced. For example, previous s3 code gained an implicit dependency on talloc after the charset related consolidation (lib/util/charset/charset.h now includes talloc.h). When building against the embedded version of talloc this isn't a problem since the paths are automatically added to the search path, but when building against the external libraries build failures will occur for all components that don't directly or indirectly include talloc as a dependency. Since charset.h is included from util.h, which in turn is included from includes.h, this means most of the codebase (s3 and s4) has such an undeclared dependency. Therefore, samba-util-common and samba-util have been added as dependencies to the s3 and s4 code respectively, for all cases where the source would otherwise fail to build. Additionally, a few other dependencies are added in specific wscript_build files to address similar dependency-related problems. https://bugzilla.samba.org/show_bug.cgi?id=8128 Signed-off-by: Sean Finney <seanius@seanius.net> Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed May 25 19:22:13 CEST 2011 on sn-devel-104
2011-05-18build: Add depenencies needed by Samba3 subsystemsAndrew Bartlett1-0/+1
2011-05-08s3-auth Add auth_samba4 moduleAndrew Bartlett2-0/+141
This module makes a direct call into the Samba4 auth stack to authenticate Samba4 uses in a Samba3 file server. The direct call avoids the need to obtain schannel credentials. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-05-06s3-libsmb: move protos to libsmb/proto.hGünther Deschner2-0/+2
Guenther
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-1/+1
2011-05-05More simple const fixes.Jeremy Allison1-8/+8
2011-05-05s3-auth: run minimal_includes.plGünther Deschner5-6/+0
Guenther
2011-05-04Remove obvious use of safe_strcpy + safe_strcat -> strlcpy + strlcat.Jeremy Allison1-10/+10
2011-05-03s3-include: use new roles.hAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-13s3: Use wbcSidsToUnixIds in create_local_tokenVolker Lendecke1-6/+20
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-06s3-auth: Make server_info const in create_local_token()Andrew Bartlett2-5/+5
Andreas Schneider <asn@samba.org> correctly points out that this input parameter should now be const, and that found a bug where I used then used it incorrectly as a talloc context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 6 00:33:31 CEST 2011 on sn-devel-104
2011-04-05s3-auth Rename user_session_key -> session_key to match auth_session_infoAndrew Bartlett4-27/+27
2011-04-05s3-auth use create_local_token() to transform server_info -> session_infoAndrew Bartlett4-116/+152
Before a auth_serversupplied_info struct can be used for authorization, the local groups and privileges must be calculated. create_local_token() now copies the server_info, and then sets the calulated token and unix groups. Soon, it will also transform the result into an expanded struct auth_session_info. Until then, the variable name (server_info vs session_info provides a clue to the developer about what information has been entered in the structure). By moving the calls to create_local_token within the codebase, we remove duplication, and ensure that the session key (where modified) is consistently copied into the new structure. Andrew Bartlett
2011-04-04s3-auth consolidate create_local_token() into make_server_info_krb5()Andrew Bartlett2-3/+13
This ensures that all callers don't need to each add builtin groups and privileges to the user's token Andrew Bartlett
2011-03-30s3: try to fix the build on some non-linux buildfarm machines.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
2011-03-30s3: only include lib/privileges.h where needed.Günther Deschner1-0/+1
This finally removes the global lsa.h inclusion. Guenther
2011-03-30s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.Günther Deschner1-0/+2
Guenther
2011-03-30s3-auth: use auth.h where needed.Günther Deschner22-0/+22
Guenther
2011-03-30s3-auth: move auth prototypes to auth/proto.h.Günther Deschner1-0/+266
Guenther
2011-03-30s3: auth also needs parts of smbd.Günther Deschner2-0/+2
Guenther
2011-03-30s3-passdb: use passdb headers where needed.Günther Deschner4-0/+4
Guenther
2011-03-30s3-passdb: add passdb.h where needed.Günther Deschner3-0/+3
Guenther
2011-03-30s3: create_builtin_users/administrators belongs to passdb not auth.Günther Deschner1-130/+0
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/passwd.h when needed.Günther Deschner2-0/+2
Guenther
2011-03-30s3-winbind: remove global inclusion of libwbclient.Günther Deschner6-0/+6
Guenther