summaryrefslogtreecommitdiffstats
path: root/source4/smb_server
Commit message (Collapse)AuthorAgeFilesLines
* s4-nterr: move auth_nt_status_squash to nt_status_squash and move to nterr.cGünther Deschner2011-03-042-7/+7
| | | | Guenther
* s4-auth Rework auth subsystem to remove struct auth_serversupplied_infoAndrew Bartlett2011-02-092-13/+12
| | | | | | | | | | | | | This changes auth_serversupplied_info into the IDL-defined struct auth_user_info_dc. This then in turn contains a struct auth_user_info, which is the only part of the structure that is mainted into the struct session_info. The idea here is to avoid keeping the incomplete results of the authentication (such as session keys, lists of SID memberships etc) in a namespace where it may be confused for the finalised results. Andrew Barltett
* s4-smb_server Return why the ntvfs_connect() failed.Andrew Bartlett2010-12-011-1/+1
| | | | Andrew Bartlett
* service_ldap, service_smb: Lowercase output file names.Jelmer Vernooij2010-11-221-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 20:28:14 CET 2010 on sn-devel-104
* smb_server: Build as shared module.Jelmer Vernooij2010-11-151-1/+1
|
* s4: Build ldap and samba3_smb services as shared modules.Jelmer Vernooij2010-11-151-2/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 15 03:04:41 UTC 2010 on sn-devel-104
* s4-server: make server sockets a child of the task contextAndrew Tridgell2010-11-154-13/+18
| | | | | | | | | | | | We previously allocated sockets as direct children of the event context. That led to crashes if a service called task_server_terminate(), as it left the socket open and handling events for a dead protocol. Making them a child of the task allows the task to terminate and take all its sockets with it. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* credentials: Lowercase library name,Jelmer Vernooij2010-11-071-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 7 01:48:44 UTC 2010 on sn-devel-104
* s4:waf - fix the build on Gentoo platformsPhilip M. White2010-11-031-1/+2
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4-server: avoid using environ as it is not portableAndrew Tridgell2010-10-311-2/+1
| | | | | | | | we can just use execv() instead, which passes through the environment, which is all we need Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Oct 31 23:53:49 UTC 2010 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-313-83/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4-build: removed some unnecessary dependenciesAndrew Tridgell2010-10-301-1/+1
| | | | based on running waf --symbol-check
* s4-smbd: don't initialise process models more than onceAndrew Tridgell2010-10-301-1/+1
| | | | | | | | | this also removes the event_context parameter from process model initialisation. It isn't needed, and is confusing when a process model init can be called from more than one place, possibly with different event contexts. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* netlogon.idl: Switch to explicit constants to remove dependency on nbt.idlKai Blin2010-10-231-0/+1
|
* smb_server: Split core out of service, since the service can be built as a ↵Jelmer Vernooij2010-10-113-46/+83
| | | | .so against which we can't link.
* smb2: Add missing dependency on NDR_DFSBLOBS.Jelmer Vernooij2010-10-111-1/+1
|
* samdb: Add flags argument to samdb_connect().Jelmer Vernooij2010-10-101-1/+1
|
* dfs: Fix wrong size of referral, change order of dc referralMatthieu Patou2010-10-051-5/+12
| | | | | Order of referral is now like w2k8/w2k8r2 as it seems it has an influence on how clients manage to get it.
* s4-smb: serialise session setup operationsAndrew Tridgell2010-09-152-0/+16
| | | | | | | the mixture of async and sync code in gensec makes a EOF on a socket during a session setup cause a crash. The simplest solution is to stop processing events on the socket until the session setup is complete.
* s4-smb: smbsrv_blob_push_string() can return -1Andrew Tridgell2010-09-151-8/+11
| | | | need to use ssize_t, not size_t for error handling
* s4:auth Move struct auth_usersupplied_info to a common locationAndrew Bartlett2010-08-141-2/+2
| | | | | | | | | This also changes the calling convention slightly - we should always allocate this with talloc_zero() to allow some elements to be optional. Some elements may only make sense in Samba3, which I hope will use this common structure. Andrew Bartlett
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-1610-65/+65
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:smb_server/smb2/find.c - remove unused codeMatthias Dieter Wallnöfer2010-06-291-3/+0
| | | | Spotted by the Solaris 10 compiler
* s4:smb_server/blob.c - remove unused codeMatthias Dieter Wallnöfer2010-06-291-8/+0
| | | | Spotted by the Solaris 10 compiler
* s4:auth Change auth_generate_session_info to take flagsAndrew Bartlett2010-05-201-1/+13
| | | | | | | | | | | | | | This allows us to control what groups should be added in what use cases, and in particular to more carefully control the introduction of the 'authenticated' group. In particular, in the 'service_named_pipe' protocol, we do not have control over the addition of the authenticated users group, so we key of 'is this user the anonymous SID'. This also takes more care to allocate the right length ptoken->sids Andrew Bartlett
* s4:smb_server/smb/trans2.c - remove unused define "DEFAULT_SITE_NAME"Matthias Dieter Wallnöfer2010-05-181-1/+0
| | | | | Obviously this isn't needed and in general site names shouldn't be hardcoded anymore (except there is a good reason).
* s4:smb_server: Implement GET_DFS_REFERRAL for domain referral requestsMatthieu Patou2010-05-181-1/+871
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:smb_server: fix trailling whitespace in trans2.cMatthieu Patou2010-05-181-25/+25
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-183-6/+6
|
* s4:smb_server/smb: SMBreadX can return STATUS_BUFFER_OVERFLOWStefan Metzmacher2010-04-281-1/+5
| | | | metze
* s4:smb_server: use tsocket_address_string() for debugging the client addressStefan Metzmacher2010-04-271-8/+8
| | | | metze
* s4:smb_server: use tsocket_address_string() for debugging the client addressStefan Metzmacher2010-04-271-8/+9
| | | | metze
* s4:smb_server: use tsocket_address_string() to display the client addressStefan Metzmacher2010-04-271-3/+5
| | | | metze
* s4:smb_server: remove unused socket_address functionsStefan Metzmacher2010-04-271-16/+0
| | | | metze
* s4:smb_server: pass tsocket_addresses to the ntvfs layerStefan Metzmacher2010-04-272-4/+8
| | | | metze
* s4:auth Change auth_generate_session_info to take an auth contextAndrew Bartlett2010-04-141-18/+61
| | | | | | | | | | | | | | | | | | The auth context was in the past only for NTLM authentication, but we need a SAM, an event context and and loadparm context for calculating the local groups too, so re-use that infrustructure we already have in place. However, to avoid problems where we may not have an auth_context (in torture tests, for example), allow a simpler 'session_info' to be generated, by passing this via an indirection in gensec and an generate_session_info() function pointer in the struct auth_context. In the smb_server (for old-style session setups) we need to change the async context to a new 'struct sesssetup_context'. This allows us to use the auth_context in processing the authentication reply . Andrew Bartlett
* s4-waf: move to a universal method of recursing into subdirsAndrew Tridgell2010-04-061-2/+2
| | | | This works with both standalone lib builds and bundled builds
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-063-12/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-063-0/+6
| | | | them
* build: waf quicktest nearly worksAndrew Tridgell2010-04-061-1/+1
| | | | | Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-063-0/+49
|
* s4-pvfs: move the private ntcreatex flags to private_flagsAndrew Tridgell2010-03-052-6/+2
| | | | | | | | Re-using two of the create_options bits was bound to eventually cause problems, and indeed, Windows7 now uses one of those bits when opening text files. Fixes bug 7189
* Change uint_t to unsigned int in source4Matt Kraai2010-02-026-24/+24
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:auth: change auth_check_password_send/recv to tevent_reqStefan Metzmacher2009-12-241-13/+26
| | | | metze
* s4:gensec: change gensec_update_send/recv to tevent_reqStefan Metzmacher2009-12-242-10/+27
| | | | metze
* s4:smb_server: fix mixing socket_address and tsocket_addressStefan Metzmacher2009-12-241-6/+9
| | | | metze
* s4:auth Change 'get_challenge' API to be more like Samba3Andrew Bartlett2009-12-221-4/+1
| | | | | | | It is just easier to fill in the known to be 8 byte challenge than stuff about with allocated pointers. Andrew Bartlett
* s4-server: use GUID_to_ndr_blob() in cldap and smb serversAndrew Tridgell2009-12-102-9/+6
|
* s4-smb2: use new GUID function in smb2 negprotAndrew Tridgell2009-12-101-3/+2
|
* s4:smb_server/smb2: don't reset highest_smb2_seqnum on SMB2 CancelStefan Metzmacher2009-11-271-2/+4
| | | | metze