Jeremy Allison
1787c1dfc3
Factor out the recent changes into a function - check_parent_exists().
...
Fix this to ensure that if "start" is manipulated, then "dirpath"
is changed also.
Ensures that when the path:
/a/long/file/name/path.txt
is processed, we first stat:
/a/long/file/name/path.txt
and if this fails, we try to stat:
/a/long/file/name
if this path exists (the normal case when creating a new
entry in a directory) then we no longer do the individual
path name walk, but only do case insensitive lookup on the
last component. If the stat fails we do the full pathname
walk as normal in 3.5.x and below. Metze, examine this
change for your back-port.
Jeremy.
2010-09-10 23:28:15 -07:00
Volker Lendecke
f76983ae3f
s3: Simplify the logic in generate_krb5_ccache
...
gd, jra, others, please check!
2010-09-11 00:02:02 +02:00
Björn Jacke
306465a5a4
s3/winbind: use mono time for startup timeout check
2010-09-10 23:10:26 +02:00
Björn Jacke
e2de1b8e71
libreplace: clock_gettime sets errno
2010-09-10 23:10:26 +02:00
Björn Jacke
3eda2815f6
s4/pvfs: use monotonic time for this timeout
2010-09-10 23:10:26 +02:00
Björn Jacke
d320aa1212
s4/ldap: use time_mono for reconnect timeout
2010-09-10 23:10:26 +02:00
Björn Jacke
54ca77183b
s4/torture: use time_mono for timeouts
2010-09-10 23:10:25 +02:00
Björn Jacke
478ac36b9c
s4/torture: use time_mono for delta time
2010-09-10 23:10:25 +02:00
Günther Deschner
d4d34bddd7
s3-selftest: add print_test_extended (as called from RPC-PRINTER) to knownfail list.
...
Guenther
2010-09-10 23:07:49 +02:00
Matthias Dieter Wallnöfer
07af8f2514
s4:client/client.c - fix wrong return codes in "do_connect"
...
Detected by the Solaris cc compiler.
2010-09-10 22:45:50 +02:00
Matthias Dieter Wallnöfer
9d4dc69627
s4:lib/policy/gp_filesys.c - remove dead code
...
Found out by Solaris cc
2010-09-10 22:45:50 +02:00
Matthias Dieter Wallnöfer
55bc079b9a
s4:torture/locktest.c - add a cast in order to quiet a warning on Solaris cc
2010-09-10 22:45:50 +02:00
Matthias Dieter Wallnöfer
ace43d4ccd
s4:libcli/wrepl/winsrepl.c - add more "char *" casts in order to suppress Solaris warnings
2010-09-10 22:45:49 +02:00
Matthias Dieter Wallnöfer
5c33ef2758
s3/s4:libcli/tstream - add more "char *" casts in order to suppress Solaris warnings
2010-09-10 22:45:49 +02:00
Matthias Dieter Wallnöfer
ece428f02c
s4:torture/ntp/ntp_signd.c - add more "char *" casts in order to suppress Solaris warnings
2010-09-10 22:45:49 +02:00
Günther Deschner
68c9877796
s3-printing: fix non-ads build after prototype changes.
...
Guenther
2010-09-10 22:41:56 +02:00
Volker Lendecke
aa00d331a6
s3: Simplify generate_krb5_ccache slightly
...
strequal deals with a NULL string input just fine
2010-09-10 12:36:07 -07:00
Jeremy Allison
e850958928
Check all SMB_MALLOC returns correctly. Found by Andreas Moroder <andreas.moroder@gmx.net>.
...
Jeremy
2010-09-10 11:56:26 -07:00
Matthias Dieter Wallnöfer
55598c4746
s4:torture/rpc/winreg.c - hopefully this attempt fixes Solaris "cc" on the buildfarm
...
The Solaris "cc" incompatiblity on this codepart seems to be harder to fix than
it looks like.
2010-09-10 20:20:26 +02:00
Matthias Dieter Wallnöfer
4fc1319db9
s4:getncchanges_change_master - also in this call "i" needs to be unsigned
2010-09-10 20:20:26 +02:00
Volker Lendecke
8de2c15df3
s3: auth.krb5ccname and auth.unix_username are both fstrings
...
There's no point in checking for != NULL
2010-09-10 10:52:18 -07:00
Stefan Metzmacher
f101349c73
selftest/s3-selftest.sh: knownfailure filtering for non-build-farm make test
...
metze
2010-09-10 17:21:34 +02:00
Stefan Metzmacher
c91bdd2b0e
s3:torture: fix printf output, lines can't start with lower case "test"
...
metze
2010-09-10 17:21:33 +02:00
Stefan Metzmacher
a489fb3ee2
s3:torture: fix run_uid_regression_test
...
metze
2010-09-10 17:21:33 +02:00
Stefan Metzmacher
cd8e2fd9fa
s3-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED
...
metze
2010-09-10 17:21:32 +02:00
Stefan Metzmacher
88f96578cd
s4-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED
...
metze
2010-09-10 17:21:31 +02:00
Stefan Metzmacher
0ad2890c4e
s4:provision: remember the setup directory if it wasn't the default
...
This fixes make test without a make install.
metze
2010-09-10 17:21:31 +02:00
Günther Deschner
bf7ca3f5e7
s3-spoolss: Fix _spoolss_GetPrinter().
...
In the error case, we need to TALLOC_FREE(r->out.info), don't ask :-)
Guenther
2010-09-10 17:11:12 +02:00
Andreas Schneider
fc1a5dbffb
s3-spoolss: Don't leak memory on the session counter list.
...
Thanks Günther, please check.
2010-09-10 16:10:46 +02:00
Simo Sorce
ed2c06f9da
s3-spoolss: Allow multiple client backchannels.
...
When we run spoolssd we need to support multiple clients connecting.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:04 +02:00
Simo Sorce
a736385b97
s3-spoolss: Split function to send notification.
...
More digestible this way.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:04 +02:00
Simo Sorce
9db2be245e
s3-spoolss: Use a single structure for all the back channel data.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
433ac757dc
s3-spoolss: Rename Printer_entry to struct printer_handle.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
4a8d042afa
s3-spoolss: Move Printer_entry to srv_spoolss_nt.c
...
It is used only there, and it is a good idea to make this one private and
opaque to the rest of the code.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
e257e68b4b
s3-spoolss: Allocate printer entries on the pipe struct.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
0e5b1a67d2
s3-spoolss: Rename session counter structure and use talloc.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Günther Deschner
c59961dd81
s3-dsgetdcname: cleanup receive_getdc_response a little.
...
Guenther
2010-09-10 13:21:41 +02:00
Günther Deschner
33fdf8dac2
s3-build: use proper RPC_X_OBJ target names.
...
Guenther
2010-09-10 13:20:13 +02:00
Günther Deschner
4577fb3163
s3-waf: use proper RPC_X_SRC names.
...
This allows to build using waf without --enable-developer and should also fix
support for rpc server modules.
Guenther
2010-09-10 13:20:13 +02:00
Anatoliy Atanasov
788bfc8a25
s4/fsmo: Change return type from NTSTATUS to WERROR for drepl_takeFSMOrole
...
This removed an unnecessary conversion of the return type in
drepl_take_FSMO_role.
2010-09-10 13:44:20 +03:00
Anatoliy Atanasov
0ad22777ec
s4/fsmo: Fix callback declaration
2010-09-10 13:29:38 +03:00
Kamen Mazdrashki
25dd9fae66
s4-drs: return DRSUAPI_EXOP_ERR_SUCCESS in extended_ret
...
in case we are handling extended operation.
It seems that windows accept both DRSUAPI_EXOP_ERR_SUCCESS
and DRSUAPI_EXOP_ERR_NONE, but Samba is a little bit
more picky on this.
2010-09-10 13:08:25 +03:00
Kamen Mazdrashki
611cd51096
s4-drs: Hanlde extended operations only once
...
Most of extended operations I know of work like:
1. do extended operation
2. collect a set of objects to return and start replication cycle
3. continue returning object as we have no more to give
This way we ensure we are doing 1. only once
2010-09-10 13:08:24 +03:00
Kamen Mazdrashki
d08439d42b
s4-dreplsrv: fix 'dn' for partition object being created
2010-09-10 13:08:23 +03:00
Kamen Mazdrashki
750300aedf
s4-drs-fsmo: try to dispatch ops in queue as soon as possible
...
In most cases this will transfer of schema master role to
look like a synchronous operation.
2010-09-10 13:08:22 +03:00
Anatoliy Atanasov
62b5274827
s4/fsmo: Added python tests for schema master transfer op
2010-09-10 13:08:21 +03:00
Andrew Tridgell
c34cae81fe
s4-fsmo: update FSMO changes for recent IRPC work
...
the IRPC API has changed
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-10 13:08:20 +03:00
Anatoliy Atanasov
ab01ce6e96
s4/drs: update repsFrom only when we are not in getncchanges extended op
2010-09-10 13:08:20 +03:00
Nadezhda Ivanova
36e663ad71
s4-ldap: Added support for FSMO role transfer via LDAP by modify on rootDSE
...
GetNCChanges with the corresponding extended operation is initiated and added to
the queue when a modify request is received on becomeSchemaMaster, becomeRidMaster,
becomeNamingMaster, becomeInfrastructureMaster and becomePDC attributes in
rootDSE.
2010-09-10 13:08:19 +03:00
Nadezhda Ivanova
5ba2858b02
s4-rpc: Added handling of fsmo role transfer to GetNCChanges
...
This adds support for DRSUAPI_EXOP_FSMO_REQ_ROLE, DRSUAPI_EXOP_FSMO_RID_REQ_ROLE
and DRSUAPI_EXOP_FSMO_REQ_PDC.
Developed in collaboration with Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2010-09-10 13:08:18 +03:00