summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:lib/policy/gp_filesys.c - remove dead codeMatthias Dieter Wallnöfer2010-09-101-2/+0
| | | | Found out by Solaris cc
* s4:torture/locktest.c - add a cast in order to quiet a warning on Solaris ccMatthias Dieter Wallnöfer2010-09-101-1/+1
|
* s4:libcli/wrepl/winsrepl.c - add more "char *" casts in order to suppress ↵Matthias Dieter Wallnöfer2010-09-101-1/+1
| | | | Solaris warnings
* s4:torture/ntp/ntp_signd.c - add more "char *" casts in order to suppress ↵Matthias Dieter Wallnöfer2010-09-101-2/+2
| | | | Solaris warnings
* s4:torture/rpc/winreg.c - hopefully this attempt fixes Solaris "cc" on the ↵Matthias Dieter Wallnöfer2010-09-101-27/+10
| | | | | | | buildfarm The Solaris "cc" incompatiblity on this codepart seems to be harder to fix than it looks like.
* s4:getncchanges_change_master - also in this call "i" needs to be unsignedMatthias Dieter Wallnöfer2010-09-101-1/+2
|
* s4-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETEDStefan Metzmacher2010-09-101-0/+1
| | | | metze
* s4:provision: remember the setup directory if it wasn't the defaultStefan Metzmacher2010-09-104-0/+11
| | | | | | This fixes make test without a make install. metze
* s4/fsmo: Change return type from NTSTATUS to WERROR for drepl_takeFSMOroleAnatoliy Atanasov2010-09-103-4/+5
| | | | | This removed an unnecessary conversion of the return type in drepl_take_FSMO_role.
* s4/fsmo: Fix callback declarationAnatoliy Atanasov2010-09-101-1/+2
|
* s4-drs: return DRSUAPI_EXOP_ERR_SUCCESS in extended_retKamen Mazdrashki2010-09-101-0/+1
| | | | | | | | 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.
* s4-drs: Hanlde extended operations only onceKamen Mazdrashki2010-09-101-40/+45
| | | | | | | | | 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
* s4-dreplsrv: fix 'dn' for partition object being createdKamen Mazdrashki2010-09-101-1/+9
|
* s4-drs-fsmo: try to dispatch ops in queue as soon as possibleKamen Mazdrashki2010-09-101-1/+9
| | | | | In most cases this will transfer of schema master role to look like a synchronous operation.
* s4/fsmo: Added python tests for schema master transfer opAnatoliy Atanasov2010-09-102-0/+153
|
* s4-fsmo: update FSMO changes for recent IRPC workAndrew Tridgell2010-09-102-7/+13
| | | | | | the IRPC API has changed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/drs: update repsFrom only when we are not in getncchanges extended opAnatoliy Atanasov2010-09-101-4/+4
|
* s4-ldap: Added support for FSMO role transfer via LDAP by modify on rootDSENadezhda Ivanova2010-09-101-1/+46
| | | | | | | 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.
* s4-rpc: Added handling of fsmo role transfer to GetNCChangesNadezhda Ivanova2010-09-101-0/+108
| | | | | | 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>
* s4-irpc: Added internal rpc call DREPL_TAKEFSMOROLENadezhda Ivanova2010-09-101-1/+10
| | | | | It schedules a getncchanges with extended op 6, to be used when a modify request on becomeROLEMaster atteibute on rootDSE is received.
* s4-drs: Implementation of GetNCChanges extended op 6 - fsmo role transferNadezhda Ivanova2010-09-104-2/+170
| | | | | | | | | Basically the candidate owner makes a getncchanges call with extended op 6 when they want to become the new owner. The current owner then updates the corresponding fSMORoleOwner attribute in its database with the new owner, and replicates the change to the candidate, who then becomes the owner. The patch was made in cooperation with Anatoliy Atanasov <anatoliy.atanasov@postpath.com> who kindly helped to debug it.
* s4-drs: Refactored drepl_service and send_ridalloc_request so that the ↵Nadezhda Ivanova2010-09-102-27/+48
| | | | structures can be used for other extended ops
* s4/torture: use time_mono for deltas in lock testBjörn Jacke2010-09-101-22/+22
|
* s4-smbtorture: add spoolss_OpenPrinter with unc and printername in ↵Günther Deschner2010-09-101-4/+18
| | | | | | RPC-SPOOLSS-PRINTSERVER. Guenther
* s4:client/cifsdd.c - restore Solaris cc compatibilityMatthias Dieter Wallnöfer2010-09-091-11/+10
| | | | "static const struct"s need to be global in order to work with Solaris cc.
* s4:torture/rpc/winreg.c - restore Solaris cc compatibilityMatthias Dieter Wallnöfer2010-09-091-71/+72
| | | | "static const struct"s need to be global in order to work with Solaris cc.
* s4:libcli/security/*.c - fix some wrong typed countersMatthias Dieter Wallnöfer2010-09-093-10/+7
| | | | According to "librpc/gen_ndr/security.h" they need to be "uint32_t".
* s4-dreplsrv: Do allocations on long-living context so that callback gets calledKamen Mazdrashki2010-09-091-1/+1
|
* s4-drs-test: Add 'reset' and 'replace' tests for drsuapi_DsReplicaUpdateRefsKamen Mazdrashki2010-09-091-4/+28
| | | | | | | | | | At first I got the impression we are not handling those cases, but after those tests surprisingly passed I saw that we have correct behavior implemented in a helper function. So I decided to commit those tests in case someone change the strange-looking check for DRSUAPI_DRS_ADD_REF flag in a function that handles delete operation :)
* s4-dreplsrv: Call dreplsrv_out_operation::callback in case we fail to even ↵Kamen Mazdrashki2010-09-091-0/+8
| | | | | | | | | | | | run the operation Operation was scheduled already, so we need to call the callback function for it to be able to do its job. For instance, if we are blocking an rpc call until an operation is completed and there is no memory, then client will be blocked without knowing what is going on with the server.
* s4-dsdb/repl/drepl_out_pull.c: Remove unused codeKamen Mazdrashki2010-09-091-43/+0
|
* s4-drepl_service.c: Update (C)Kamen Mazdrashki2010-09-091-9/+10
| | | | and remove few trailing white spaces
* s4-drepsrv: Dump more info when drepl_replica_sync() failsKamen Mazdrashki2010-09-091-24/+28
| | | | | | | | | There are many spots where this function may fail and I find it very useful to know where exactly function fails and what are the input parameters during testing. REPLICA_SYNC_FAIL() macro now dumps an error message so we may remove extra DEBUG() dump in implementation.
* s4-rodc: cope with missing searchFlagsAndrew Tridgell2010-09-091-3/+4
| | | | this can be missing after the schema tests
* s4-dsdb Change debug levels for startup messagesAndrew Bartlett2010-09-092-10/+10
| | | | | | We should make the 'common' error not show up, but the unusal case fatal. Andrew Bartlett
* s4-setup Make krb5.conf use DNS by defaultAndrew Bartlett2010-09-091-2/+2
| | | | | | | | We set up our DNS pretty well these days, and I think the previous setting was only there because Andrew Kroeger copied this out of our selftest code in bf3f3af92677bce8f03b0dd2be552d6c8c730ca1. Andrew Bartlett
* s4-test: added a RODC test using rpcechoAndrew Tridgell2010-09-091-0/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-rodc: get the domain name from the partitions DNAndrew Tridgell2010-09-092-7/+9
| | | | | | | don't rely on the netbios domain name being the first part of the realm Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: expose PyLdbDn_FromDn()Andrew Tridgell2010-09-092-18/+29
| | | | | | This is needed by the dsdb python interface Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: fixed error format stringAndrew Tridgell2010-09-091-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pydsdb: expose samdb_partitions_dn() as get_partitions_dn() in pythonAndrew Tridgell2010-09-092-0/+33
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-rodc: s->schema need initialisationAndrew Tridgell2010-09-091-0/+1
| | | | this fixes a segfault in net rodc preload
* s4-waf: fix bin/python/samba/dcerpc/nbt.so.Günther Deschner2010-09-081-1/+5
| | | | | | Thanks to Brad Hards for pointing this out. Guenther
* setup: Use standard octal ints rather than harcoding.Jelmer Vernooij2010-09-081-2/+1
|
* popt_common: Add missing dependency on libsamba-hostconfig.Jelmer Vernooij2010-09-081-3/+2
|
* s4-smbtorture: add torture ndr nbt testsuite.Günther Deschner2010-09-084-2/+73
| | | | Guenther
* s4-dreplsrv: Run NC replication synchronously if requestedKamen Mazdrashki2010-09-071-30/+119
|
* s4-drs: Dump exact error when failure occurs during DsReplicaUpdateRefs callKamen Mazdrashki2010-09-071-6/+10
|
* s4-ldapserver: serialise ldap server operationsAndrew Tridgell2010-09-072-0/+60
| | | | | | | | | This ensures that two ldap server operations cannot happen in parallel by using packet_recv_disable() and packet_recv_enable() to disable other interfaces during ldap calls. This prevents problems caused by parallel ldap operations where transactions could overlap.
* s4-packet: make packet_recv_disable() a lot more efficientAndrew Tridgell2010-09-071-2/+6
| | | | | this avoids doing an epoll system call when we want to prevent receipt of packets on a socket, unless there actually is a packet to receive.