summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_unbecome_dc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-10libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher1-2/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
2011-10-10libcli/cldap: pass tevent_context to cldap_netlogon_send()Stefan Metzmacher1-1/+2
metze
2011-06-20libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett1-1/+1
The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
2011-04-04s4-libnet: honour convention of DEBUGLEVEL>=10 for NDR printAndrew Tridgell1-0/+4
2011-02-10ldb: use #include <ldb.h> for ldbAndrew Tridgell1-2/+2
thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-16s4:dsdb - fix unsigned integer save problems using the "%u" specifierMatthias Dieter Wallnöfer1-2/+3
The issue here is that we have not yet first cast to int32_t explicitly, before we cast to an signed int to printf() into the %d or cast to a int64_t before we then cast to a long long to printf into a %lld. There are *no* unsigned integers in Active Directory LDAP, even the RID allocations and ms-DS-Secondary-KrbTgt-Number are *signed* quantities. (See the schema, and the syntax definitions in schema_syntax.c). The failure has been detected by Matthieu Patou on the buildfarm host "tridge" due to a malformed "groupType" attribute. The solution is to use the "%d" specifier. Either to use it directly - or better (when possible) use the call "samdb_msg_add_uint" (which encapsulates it). This patch changes such problematic situations.
2010-10-15s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer1-2/+2
"samdb_result_uint64" and "samdb_result_string" We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this reduces only code redundancies. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-1/+1
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>
2010-06-16s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher1-1/+1
This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-3/+1
2010-04-27nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer1-1/+1
2010-03-12s4:libnet_unbecome_dc: make use of use tevent_req based ↵Stefan Metzmacher1-14/+25
dcerpc_binding_handle stubs metze
2010-03-10s4:libnet_become_dc - change counter variables to "unsigned" where they ↵Matthias Dieter Wallnöfer1-1/+1
count LDB objects
2010-03-10s4/drs: DsRemoveDSServer - Propagating IDL changes to source codeKamen Mazdrashki1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-01s4:libnet: make use of explicit dcerpc_*_recv functionsStefan Metzmacher1-2/+2
metze
2010-02-26s4:libnet: use a connected CLDAP socket.Stefan Metzmacher1-3/+15
This is needed because we don't (want) to specify an explicit local address. And the socket family (ipv4 vs. ipv6) needs to be autodetected based on the remote address before the socket() syscall. Otherwise we would try to connect to a ipv4 address through an ipv6only socket. metze
2009-10-23s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell1-1/+1
This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
2009-07-13libds: share UF_ flags between samba3 and 4.Günther Deschner1-1/+1
Guenther
2009-03-19s4:cldap: rewrite the cldap library based on tsocketStefan Metzmacher1-11/+13
metze
2009-02-02s4:cldap: s/private/private_dataStefan Metzmacher1-2/+2
metze
2008-10-18s4-drsuapi: merge drsuapi_DsRemoveDSServer from s3 drsuapi idl.Günther Deschner1-4/+8
Guenther
2008-10-02s4:drsuapi.idl: fix some fields in drsuapi_DsRemoveDSServer()Stefan Metzmacher1-6/+1
metze
2008-10-02The IRIX compiler does not like embedded unnamed unionsVolker Lendecke1-1/+1
2008-09-23Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce1-12/+7
The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
2008-07-23drsuapi: always set the pid field of the outgoing DsBindInfo to 0.Michael Adam1-1/+1
This is for debugging and informational purposes only. The assignment is implementation specific. (WSPP docs, sec. 5.35). Michael (This used to be commit 1f5704e2dee5900e8d1d87699b76f67c0e12854e)
2008-07-23libnet_unbecome_dc: teach unbecomeDC_drsuapi_bind_recv() DsBindInfo48.Michael Adam1-0/+9
..to work agains w2k8. Michael (This used to be commit 97e8d5813df19cae294b6de2a880606f0f8c2c59)
2008-07-22Change occurrences of the u1 member of DsBindInfo* to pid after idl change.Michael Adam1-2/+2
Michael (This used to be commit b91bbc5fe4a47e5823be6be5f2f203f1f14105de)
2008-05-16Rework the CLDAP and NBT netlogon requests and responses.Andrew Bartlett1-10/+11
This now matches section 7.3.3 of the MS-ATDS specification, and all our current tests pass against windows. There is still more testing to do, and the server implementation to complete. Andrew Bartlett (This used to be commit 431d0c03965cbee85691cd0dc1e2a509c1a2b717)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij1-1/+1
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-1/+2
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2007-12-21r26540: Revert my previous commit after concerns raised by Andrew.Jelmer Vernooij1-3/+3
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21r26539: Remove unnecessary statics.Jelmer Vernooij1-3/+3
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21r26328: remove more uses of global_loadparm.Jelmer Vernooij1-2/+2
(This used to be commit 40ae12c08647c47a9c504d39ee6f61c32b4e5748)
2007-12-21r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij1-1/+2
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21r26271: Remove some more uses of global_loadparm.Jelmer Vernooij1-0/+1
(This used to be commit e9875fcd56de0748ed78d7e3c9cdb4919cd96d3c)
2007-12-21r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.Jelmer Vernooij1-1/+1
(This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)
2007-10-10r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij1-1/+2
2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
2007-10-10r25175: Change to talloc_asprintf_append_buffer().Jeremy Allison1-1/+1
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
2007-10-10r24557: rename 'dcerpc_table_' -> 'ndr_table_'Stefan Metzmacher1-1/+1
metze (This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r22944: fix bug #4618:Stefan Metzmacher1-2/+2
rename private -> private_data metze (This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
2007-10-10r21839: add my email addressStefan Metzmacher1-1/+1
metze (This used to be commit e3be33c1d9f9e44ef37e6ef72a23576474f6e725)
2007-10-10r21827: move comments to the place where the functionality is implementedStefan Metzmacher1-0/+156
metze (This used to be commit 5d49d8b9e149d320cb08c5c2a4fc4cb8bfd74129)
2007-10-10r21826: reorder functionsStefan Metzmacher1-23/+25
metze (This used to be commit 3d0a810ccd5d7490d46f91ca6aef6052ca0c56c3)
2007-10-10r20073: update the computer_dn_str after ldb_rename()Stefan Metzmacher1-1/+6
metze (This used to be commit c40bc7d287664d67415ae0a8b7a272732172ec40)
2007-10-10r20061: use a DsBindInfo28 structureStefan Metzmacher1-1/+32
metze (This used to be commit e8c14577976ccb718eb887b0d63b3ba75de00d47)
2007-10-10r20045: implement the drsuapi_DsRemoveDSServer() callStefan Metzmacher1-1/+47
metze (This used to be commit deb85414c4d54a2eaf7b1318afb2eb6afdea9330)
2007-10-10r20044: implement the drsuapi connect and ds_bindStefan Metzmacher1-0/+88
metze (This used to be commit 69f1b8d3889862e7f69881f8f6b7153c7d67868e)
2007-10-10r20042: move the computer account to the CN=Computers container if neededStefan Metzmacher1-0/+54
metze (This used to be commit f9019565980058439091c4e17256676f7bbde044)
2007-10-10r20041: when unbecoming a dc:Stefan Metzmacher1-0/+87
- implement lookup the computer object - set userAccountControl = UF_WORKSTATION_TRUST_ACCOUNT if needed metze (This used to be commit 3a64eb4e8c9aa25c874a9dabc9d6e1324ac733b9)