summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2011-10-26s3:lib: make_unix_date2() is the same as pull_dos_date2()Stefan Metzmacher1-7/+1
Except for a 'void *' vs. 'uint8_t *'. As a first step let make_unix_date() call pull_dos_date(), so that we he the logic only once. We can fix the callers later. metze
2011-10-26s3:lib: make_unix_date() is the same as pull_dos_date()Stefan Metzmacher1-19/+1
Except for a 'void *' vs. 'uint8_t *'. As a first step let make_unix_date() call pull_dos_date(), so that we he the logic only once. We can fix the callers later. metze
2011-10-26s3-util: dbwrap_tool: fix fetch_string functionBjörn Baumbach1-1/+1
We do not want truncated strings. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Oct 26 04:17:05 CEST 2011 on sn-devel-104
2011-10-26s3:net registry check: fix a case where automatic and read only mode take ↵Gregor Beck1-3/+5
the wrong action Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-26s3:net registry check: do not silently replace separatorsGregor Beck1-2/+3
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-26Second attempt to fix bug #8384 - Windows XP clients seem to crash smbd ↵Jeremy Allison1-1/+1
process every once in a while. Don't just use the first entry in back_channels as a talloc context to allocate a long-lived chan entry on - must be NULL. It's already correctly deleted when the last reference goes away. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 26 02:42:35 CEST 2011 on sn-devel-104
2011-10-25s3:smb2cli_base: make use of [_]smb_[set]len_tcp()Stefan Metzmacher1-2/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 25 19:30:43 CEST 2011 on sn-devel-104
2011-10-25s3:smb2cli_base: make use of map_nt_error_from_unix_common()Stefan Metzmacher1-2/+4
metze
2011-10-25s3:lib/errmap_unix: map EPIPE to NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher1-1/+1
This lets map_nt_error_from_unix() return the same value as map_nt_error_from_unix_common(). There are no callers relying on NT_STATUS_PIPE_BROKEN. metze
2011-10-25s3:libsmb: s/event_context/tevent_context/ in async_smb.[ch]Stefan Metzmacher2-4/+4
metze
2011-10-25s3:lib/addrchange.h: include libreplace headers before othersStefan Metzmacher1-2/+2
Also we typically don't use an explicit "lib/replace/" prefix. metze
2011-10-25build: always include tevent with <tevent.h>Andrew Bartlett1-1/+1
This ensures we do the right thing if we are built against the system tevent. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-25build: always include talloc with <talloc.h>Andrew Bartlett1-1/+1
This ensures we do the right thing if we are built against the system talloc. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-25torture: Remove unused smbiconvAndrew Bartlett3-262/+1
smbiconv is not used in any test script, and has only had changes since being introduced by Jelmer to keep it building. It is also not installed on the system. I have also checked with Jelmer, who approved the removal. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-25s3:libsmb: make use of map_nt_error_from_unix_common() in async_smb.cStefan Metzmacher1-2/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 25 03:21:06 CEST 2011 on sn-devel-104
2011-10-25s3:libsmb: use HDR_* defines in cli_state_dispatch_smb1()Stefan Metzmacher1-7/+8
metze
2011-10-25s3:libsmb: make use of smb_[set]len_nbt() in async_smb.cStefan Metzmacher1-3/+3
metze
2011-10-25s3:libsmb: use HDR_* defines in cli_pull_raw_error()Stefan Metzmacher1-3/+4
metze
2011-10-25libcli/smb: move smb_signing.[ch] to the toplevelStefan Metzmacher8-513/+5
metze
2011-10-25s3:libsmb/smb_signing: make use of HDR_* definesStefan Metzmacher1-4/+4
metze
2011-10-25s3:libsmb/smb_signing: make use of smb_len_nbt()Stefan Metzmacher1-6/+6
metze
2011-10-25s3:libsmb/smb_signing: avoid usage of smb_ss_fieldStefan Metzmacher1-7/+7
metze
2011-10-24Try and fix bug #8384 - Windows XP clients seem to crash smbd process every ↵Jeremy Allison1-6/+17
once in a while. Remove the copy of the binding handle from struct notify_back_channel, use the direct pointer in struct rpc_pipe_client instead. Ensure we can't call the functions with a NULL binding handle. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 24 22:56:40 CEST 2011 on sn-devel-104
2011-10-24idl: Improve MS-PAC IDLSimo Sorce6-24/+24
Change some misleading variable names to reflect the actual function. Add missing field name/types previously marked as unkown. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Oct 24 19:19:28 CEST 2011 on sn-devel-104
2011-10-24libcli/smb: merge LOCKING_ANDX_* and OPLOCK_* defines to smb_constants.hStefan Metzmacher1-11/+4
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 24 17:46:47 CEST 2011 on sn-devel-104
2011-10-24libcli/smb: move more defines to smb_constants.hStefan Metzmacher1-106/+0
metze
2011-10-24libcli/smb: move CAP_* defines to smb_constants.hStefan Metzmacher1-46/+0
metze
2011-10-24libcli/smb: move source3/libsmb/read_smb.* to the toplevelStefan Metzmacher9-151/+9
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 24 10:18:06 CEST 2011 on sn-devel-104
2011-10-24s3:libsmb/read_smb: make use of smb_len_tcp()Stefan Metzmacher1-1/+1
metze
2011-10-24s3:libsmb: remove unused sync read_smb()Stefan Metzmacher2-25/+0
metze
2011-10-24s3:torture: avoid using read_smb()Stefan Metzmacher1-1/+16
metze
2011-10-22Third part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison1-2/+1
symlink target is outside of the share. Missed passing ucf_flags instead of hard coded flags in findfirst call. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 22 06:30:16 CEST 2011 on sn-devel-104
2011-10-22Second part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison3-2/+12
symlink target is outside of the share. The statcache has to do lstat instead of stat when returning cached posix pathnames.
2011-10-22Fix bug #8541 - readlink() on Linux clients fails if the symlink target is ↵Jeremy Allison4-11/+43
outside of the share. The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink, but disallow all other operations. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 22 01:37:41 CEST 2011 on sn-devel-104
2011-10-21Deprecate "acl check permissions".Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 21 21:51:18 CEST 2011 on sn-devel-104
2011-10-21s3:idmap_autorid: add an allocation range to autoridChristian Ambach1-1/+96
this is needed to allocate gids for BUILTIN\Users and BUILTIN\Administrators and for local users/group that admins might want to create autorid will now allocate one range for this purpose and can so give out as many uids and gids as the configured rangesize allows
2011-10-21s3:idmap_autorid: move HWM initialization into a functionChristian Ambach1-17/+27
we will need some more HWM soon, so move out initialization and optimize the logic using the new interface of dbwrap_fetch_uint32
2011-10-21s3:idmap_autorid: use strings as parameter for range allocatorChristian Ambach1-14/+14
this prepares for allocation of non-domain ranges that cannot be expressed by a SID (e.g. an allocation pool)
2011-10-21s3:winbindd/idmap make idmap modules loadable againChristian Ambach6-6/+6
commit 355b5e3a831415d9bef97 changed the module system to expect 'samba_init_module' as fixed initializer function
2011-10-21Revert "s3:idmap/autorid add a small alloc pool to autorid"Christian Ambach1-61/+0
This reverts commit 0aa558718ad7427ee8b02046da73eea1838a5a32. just having 500 uid/gids values is not good enough for users using local users and groups in the order of thousands better solution which will use a complete range for allocated uids/gids will come next.
2011-10-21s3-waf: only compile common.c in netapi examples code once.Günther Deschner1-2/+8
Guenther
2011-10-21s3-netapi: use NetApiBufferAllocate() for returned buffer in getdc calls.Günther Deschner1-2/+30
Guenther
2011-10-21s3-netapi: fix missing include in examples code.Günther Deschner1-0/+2
Guenther
2011-10-21libcli/smb: move smb_seal.c to the toplevelStefan Metzmacher8-506/+7
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Oct 21 10:22:39 CEST 2011 on sn-devel-104
2011-10-21s3-ntlmssp Remove references to auth_ntlmssp_context from the rpc codeAndrew Bartlett7-74/+75
We always dereferenced auth_ntlmssp_state->gensec_security, so now we do not bother passing around the whole auth_ntlmssp_state. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21s3-seal Remove struct smb_srv_trans_enc_ctxAndrew Bartlett3-104/+54
This structure added no value, particularly after the move to gensec. It was added at a time when auth_ntlmssp_state was not available in the client. This changed a while back (the wrapper was extended with client calls), and the move to gensec again reinforced that we do not need the extra complexity. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21s3-ntlmssp Remove references to auth_ntlmssp_context from the smb sealing codeAndrew Bartlett4-46/+54
Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21s3-ntlmssp Remove auth_ntlmssp_session_key()Andrew Bartlett4-17/+12
We now just call the gensec_session_key() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21s3-ntlmssp Remove auth_ntlmssp_want_feature()Andrew Bartlett9-31/+17
We now just call the gensec_want_feature() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21s3-seal use gensec_[un]wrap() instead of gensec_[un]seal_packet()Andrew Bartlett1-54/+41
This should not make a difference for NTLMSSP as it still calls the low level ntlmssp_[un]seal_packet() functions with the same input parameters. If we convert the gss-api/krb5 based code to gensec we have to use gensec_[un]wrap() as the wire format is different compared to gensec_[un]seal_packet() there. Andrew Bartlett Split from another commit by Stefan Metzmacher <metze@samba.org>