Aravind Srinivasan
e046b382f2
s3: Add a new VFS op called SMB_VFS_TRANSLATE_NAME
...
This vop is designed to work in tandem with SMB_VFS_READDIR to allow
vfs modules to make modifications to arbitrary filenames before
they're consumed by callers. Subsequently the core directory
enumeration code in smbd is now changed to free the memory that may be
allocated in a module. This vop enables the new version of catia in
the following patch.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-08-28 16:38:57 -07:00
Andrew Bartlett
77e2403f13
s4:ldb Don't sleep(100) in this error case, but debug the LDIF
2009-08-28 22:41:54 +10:00
Matthieu Patou
72fb26e9a4
s4: Create helpers functions related to provision
...
One for getting attributes with DN syntax, one for getting forward
linked attributes and one for getting the list of partition
2009-08-28 22:41:49 +10:00
Michael Adam
e3c7e9e81e
s4-ldb: update dlinklist.h to match main copy (lib/util/dlinklist.h)
...
Michael
2009-08-28 14:25:40 +02:00
Michael Adam
9f1c162e33
s3-ldb: update dlinklist.h to match main copy (lib/util/dlinklist.h)
...
This also removes build warnings of redefined macros
since it uses the embracing "#ifndef _DLINKLIST_H ... #endif".
Michael
2009-08-28 14:25:40 +02:00
Günther Deschner
074c6d4214
s4: include ntlmssp header in auth/ntlmssp/ntlmssp.h.
...
Guenther
2009-08-28 13:43:35 +02:00
Günther Deschner
9afd44d03c
s3-ntlmssp: use generated ntlmssp code for debugging purpose.
...
Guenther
2009-08-28 13:03:17 +02:00
Günther Deschner
91df77d2cf
s3-ntlmssp: add NDR helper routines for ntlmssp.
...
Guenther
2009-08-28 13:03:05 +02:00
Günther Deschner
2287849074
s4: fix the build after ntlmssp header change.
...
Guenther
2009-08-28 11:37:44 +02:00
Günther Deschner
b7a5e7a5d6
libcli/auth: remove unused NTLMSSP_NAME_TYPE_ flags.
...
Guenther
2009-08-28 10:09:19 +02:00
Günther Deschner
38d677bdf2
s4-ntlmssp: use interface constants in TargetInfo blob.
...
Guenther
2009-08-28 10:09:13 +02:00
Günther Deschner
e8c19f31b3
s4-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.
...
Guenther
2009-08-28 10:09:06 +02:00
Günther Deschner
82469deeac
s3-ntlmssp: use interface constants in TargetInfo blob.
...
Guenther
2009-08-28 10:08:59 +02:00
Günther Deschner
25d6c0a518
s3-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.
...
Guenther
2009-08-28 10:08:52 +02:00
Günther Deschner
3a519fac8a
ntlmssp: add ndr_print_ntlmssp_{nt,lm}_response() function.
...
Guenther
2009-08-28 10:08:43 +02:00
Günther Deschner
4d1c881239
ntlmssp: re-run make samba3-idl and add generated files.
...
Guenther
2009-08-28 10:08:00 +02:00
Günther Deschner
9b844e7ff3
ntlmssp: add NTLMSSP_MESSAGE_SIGNATURE to IDL.
...
Guenther
2009-08-28 10:05:26 +02:00
Günther Deschner
b4a860ba81
ntlmssp: add AUTHENTICATE_MESSAGE to idl.
...
Guenther
2009-08-28 10:05:19 +02:00
Günther Deschner
e65a3cb0db
ntlmssp: add CHALLENGE_MESSAGE to IDL.
...
Guenther
2009-08-28 10:05:13 +02:00
Günther Deschner
c3a6f28847
ntlmssp: add NEGOTIATE_MESSAGE to IDL.
...
Guenther
2009-08-28 10:05:06 +02:00
Günther Deschner
4e7edc7906
ntlmssp: add string helper functions to handle OEM and UNICODE charset.
...
Guenther
2009-08-28 10:05:00 +02:00
Günther Deschner
d4d2b42a92
ntlmssp: add ntlmssp helper skeleton.
...
Guenther
2009-08-28 10:04:52 +02:00
Günther Deschner
ff7958394c
ntlmssp: add IDL.
...
Guenther
2009-08-28 10:04:43 +02:00
Rusty Russell
76d91156c8
lib/tevent: close pipe_fds on event_context destruction
...
The "hack_fds" were never closed before; now they're inside event_context
they should be closed when that is destroyed.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:10:22 +10:00
Rusty Russell
be4ac22784
lib/tevent: handle tevent_common_add_signal on different event contexts.
...
I don't know if this is a problem in real life.
The code assumes there's only one tevent_context; all signals will notify
the first event context. That's counter-intuitive if you ever use more
than one, and there's nothing else in this code which prevents it AFAICT.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:09:09 +10:00
Rusty Russell
6abb637e3e
lib/tevent: fix race with signals and tevent_common_add_signal
...
We carefully preserve the old signal handler, but we replace it before
we've set up everything; in particular, if we fail setting up the
pipe_hack we could write a NUL char to stdout (fd 0), instead of
calling the old signal handler.
Replace the signal handler as the very last thing we do.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:03:41 +10:00
Rusty Russell
398d0c2929
lib/tdb: don't overwrite TDBs with different version numbers.
...
In future, this may happen, and we don't want to clobber them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 13:43:05 +10:00
Rusty Russell
4279879c98
lib/tevent: remove spectacularly complicated manual subtraction
...
To be completely honest, I don't quite know whether to laugh or cry at
this one:
1 + (0xFFFFFFFF & ~(s.seen - s.count))
== 1 + (~(s.seen - s.count)) # s.seen, s.count are uint32_t
== s.count - s.seen # -A == ~A + 1
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 13:08:01 +10:00
Michael Adam
cc248f7dfc
util: fix comment and clarify argument name in DLIST_DEMOTE()
...
Michael
2009-08-27 22:29:22 +02:00
Stefan Metzmacher
2a3270beec
s3:smbd: teach filename_convert() about fake files (2nd fix for bug #6642 )
...
metze
2009-08-27 16:45:41 +02:00
Stefan Metzmacher
5234d10c8e
s3:smbd: add is_fake_file_path() that takes only the raw path as string
...
metze
2009-08-27 16:45:40 +02:00
Stefan Metzmacher
09fe57923a
s3:streams: check for :$DATA only in the backend (fix bug #6642 )
...
We need to allow "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION" to pass
check_path(), so that the Quota Dialog works.
metze
2009-08-27 16:45:40 +02:00
Stefan Metzmacher
e91d5dbed0
s3:error_map: make NTSTATUS -> errno -> NTSTATUS mapping consistent for NT_STATUS_INVALID_PARAMETER
...
Why have we mapped EINVAL -> NT_STATUS_INVALID_HANDLE before?
metze
2009-08-27 16:45:39 +02:00
Günther Deschner
1f3d0c5485
s3-ntlmssp: remove trailing whitespace.
...
Guenther
2009-08-27 16:06:37 +02:00
Stefan Metzmacher
8d58472706
libcli/auth: add netlogon_creds_step_crypt() and netlogon_creds_first_step()
...
This abstracts the usage of crypto functions instead of directly calling
des_crypt112().
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2009-08-27 15:55:20 +02:00
Stefan Metzmacher
a69d8ab35c
libcli/auth: remove some useless lines
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2009-08-27 15:55:20 +02:00
Stefan Metzmacher
e115cb5cb1
libcli/auth: remember schannel type in netlogon_creds_server_init()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2009-08-27 15:55:20 +02:00
Günther Deschner
360868b6e8
s3-schannel: remove remaining code that was using "struct dcinfo".
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
a3c6e02748
s3-credentials: remove unused code.
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
b089506136
s3-schannel: upgrade old format schannel_store.tdb.
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
21a93c2ddc
s3-netlogon: use shared credential and schannel storage infrastructure for netlogon server.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
2d8157fb9e
s3-netlogon: add netr_creds_server_step_check() convenience wrapper.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
a09b627ecc
s3-schannel: add simple wrappers to fetch and store schannel auth info.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
7c972d83d2
s3-schannel: make open_schannel_session_store() public.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
04310cc1c5
libcli/auth: add tdb backend for schannel state.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
699266920b
libcli/auth: move netlogon_creds_CredentialState out of libcli.
...
Guenther
2009-08-27 15:55:18 +02:00
Günther Deschner
5a15778848
schannel: add netlogon_creds_CredentialState to IDL.
...
Guenther
2009-08-27 15:55:18 +02:00
Günther Deschner
17d3800e92
s4-schannel: add ldb suffix to schannel functions.
...
Guenther
2009-08-27 15:55:18 +02:00
Günther Deschner
a18d6839ac
libcli/auth: rename schannel_state.c to schannel_state_ldb.c.
...
Guenther
2009-08-27 15:55:18 +02:00
Günther Deschner
5981272598
s3-build: add SCHANNEL_OBJ to Makefile.in.
...
Guenther
2009-08-27 15:55:18 +02:00