1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

458 Commits

Author SHA1 Message Date
Stefan Metzmacher
85497ed8cb r20052: implement the first drsuapi connection
metze
(This used to be commit 96e5d896553abac79d9e302173facf357e0cfff7)
2007-10-10 14:28:55 -05:00
Stefan Metzmacher
840ef0d5cf r20051: handle the case where the server object exist, but doesn't have a serverReference
metze
(This used to be commit e5729a29fd1d32e25f670f36ec48132982d197f9)
2007-10-10 14:28:55 -05:00
Stefan Metzmacher
bb725bbe01 r20045: implement the drsuapi_DsRemoveDSServer() call
metze
(This used to be commit deb85414c4d54a2eaf7b1318afb2eb6afdea9330)
2007-10-10 14:28:54 -05:00
Stefan Metzmacher
b3f6211f86 r20044: implement the drsuapi connect and ds_bind
metze
(This used to be commit 69f1b8d3889862e7f69881f8f6b7153c7d67868e)
2007-10-10 14:28:54 -05:00
Stefan Metzmacher
20f55aaad8 r20043: when becoming a dc:
- implement set userAccountControl = UF_SERVER_TRUST_ACCOUNT | UF_TRUSTED_FOR_DELEGATION
- implement moving to CN=Domain Controllers

metze
(This used to be commit c4037880a0c35c5d2550a0bdc9363c0592089ed9)
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
047f2c7091 r20042: move the computer account to the CN=Computers container if needed
metze
(This used to be commit f9019565980058439091c4e17256676f7bbde044)
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
a99d5b799b r20041: when unbecoming a dc:
- implement lookup the computer object
- set userAccountControl = UF_WORKSTATION_TRUST_ACCOUNT if needed

metze
(This used to be commit 3a64eb4e8c9aa25c874a9dabc9d6e1324ac733b9)
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
584446d5b1 r20040: uncomplete implementation start for libnet_UnbecomeDC()
metze
(This used to be commit f66a93ec0b5c0250dd5c49adde163b2aaaaddfbd)
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
1027451d52 r20031: - implement earching for an existing server object
- implement adding a server object

metze
(This used to be commit 6d5a1f11e7fc2431b1ff70709331aa1660dbaae2)
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
d0be12ad50 r20030: - implement the computer object search
- fix a source vs. dest dsa bug

metze
(This used to be commit ef9d9799a48217c49b88e214b50a92988f474340)
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
408db037ac r20029: - implement source_dsa site object search
metze
(This used to be commit c6166a564178e65738fa1dc79e60b8aefea61dd2)
2007-10-10 14:28:49 -05:00
Stefan Metzmacher
bb6f3ece26 r20026: - store the infrastructure server_dn_str
- implement the rid manager info searches

metze
(This used to be commit be3f91afe232d0e5df0a483cf907b04a56bf697e)
2007-10-10 14:28:49 -05:00
Stefan Metzmacher
6bf98f3adb r20025: - implement the windows2003update revision search
- finish the infrastructure fsmo detail searches

metze
(This used to be commit f1a2bd6f374321f5102f72c0ed2a9b53476d341b)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
effc51d7db r20024: lookup the infrastructure fSMORoleOwner on the 1st LDAP connection
metze
(This used to be commit 99bdd5523b3fda290151384d424b2bd5c2f4ea34)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
46d2824907 r20022: - implement the ldap connect code
- implement rootdse search on the 1st LDAP connection
- implement msDs-Behavior-Version and objectVersion searches on the 1st LDAP connection

metze
(This used to be commit b9b705b7ddcae65383a832d12df62d0946b6b20a)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
c83efbe900 r20021: implement a CLDAP netlogon request to get some infos
needed for becoming a dc.

metze
(This used to be commit 6a007aaa512849459ddc172b38f73561cc5e4846)
2007-10-10 14:28:47 -05:00
Stefan Metzmacher
6d7630a516 r20011: define libnet_BecomeDC_state struct and add some dummy functions
metze
(This used to be commit 2a50a885ed933c516430eb4284eb4badb6ab67ff)
2007-10-10 14:28:47 -05:00
Stefan Metzmacher
1d7f8edb7a r20009: use a composite context
metze
(This used to be commit ed3826bc47586dbaf06993d6c9156e0f79886c07)
2007-10-10 14:28:46 -05:00
Stefan Metzmacher
1e02e77fe1 r20008: add stubs for a libnet_BecomeDC() call
metze
(This used to be commit 103ac9a96bb43f512915196eb8869f9633410618)
2007-10-10 14:28:46 -05:00
Rafal Szczesniak
319ea53a87 r19970: more comments and fixes
rafal
(This used to be commit f4621dae44766feaeab452dc5fb5b495fa62d023)
2007-10-10 14:28:42 -05:00
Rafal Szczesniak
50821ebea3 r19956: remove unused function
rafal
(This used to be commit 2b60090ca664bd99f6332ddd3541a22f89c74aab)
2007-10-10 14:28:40 -05:00
Stefan Metzmacher
6aa5be6143 r19949: add comment that the configuration_dn needs to be looked up
it's not under the domain_dn if the domain is a child domain
in the forest

metze
(This used to be commit 87a77ee778f74a395f5ab7e55ae1e2414ee83b72)
2007-10-10 14:28:39 -05:00
Rafal Szczesniak
14db15657c r19938: Return function status instead of rpc layer status. This is
needed to correctly return STATUS_MORE_ENTRIES and the like.

rafal
(This used to be commit 0dbba04fe06d0feddf09421046e1e99c311272ca)
2007-10-10 14:28:39 -05:00
Rafal Szczesniak
176d210ec7 r19937: fix sending monitor message (spotted by metze).
rafal
(This used to be commit 16f1f075fb5c1afb959511a075e59fd908ca4b03)
2007-10-10 14:28:38 -05:00
Stefan Metzmacher
542729273c r19934: - allow to pass a samr_UserInfo21 struct to be passed to libnet_SetPassword()
- as the SetUserInfo2() levels 26/25 and 24/23 have the same encryption
  but 26 and 24 change only the password and 25 and 23 take a info21 and change the password,
  we now use 26 with fallback to 24 or 25 with fallback to 23.
- use samr_SetUserInfo2() to match what w2k3 does (works also against nt4)
- pass the info21 to libnet_SetPassword() to set acct_flags and full_name
  together with the password (to match what w2k3 does)

metze
(This used to be commit 1b86af32f3069cc75ae645698d3f92a0798e38f7)
2007-10-10 14:28:38 -05:00
Stefan Metzmacher
8ffc2d47ab r19933: something is really wrong here...
mimir: please take a look!

metze
(This used to be commit 0b4da84d7044c31a84491c4d61dcdfff38177f44)
2007-10-10 14:28:38 -05:00
Stefan Metzmacher
a7795460a9 r19931: remove unused struct members
metze
(This used to be commit 45d5da47287a9e92b88db875d9ed447c60b57f88)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
fdf4a6a97f r19922: Use new composite_create functions in composite context
initialisation.
Redesign libnet_UserList function to actually do what it
was intended to do.

rafal
(This used to be commit 4ccc6e63dd91c1772bed13aeb1a4346c2a172d1a)
2007-10-10 14:28:36 -05:00
Simo Sorce
a9e31b33b5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
(This used to be commit 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10 14:28:22 -05:00
Andrew Bartlett
2ddd807979 r19759: Allow a join to occour against ncacn_ip_tcp again (useful for torture
tests).  The issue is that Win2k3 SP1 will not answer many LSA
requests on that port (I think this is as a security measure).

In this case, we need to skip ahead in the composite functions.

We were also checking the wrong variable to determine sucess/failure
of the LsaOpenPolicy2.

Andrew Bartlett
(This used to be commit 67c191305fa97470017e7e8a5b55fc0949d432ad)
2007-10-10 14:28:19 -05:00
Rafal Szczesniak
e8f77306dd r19753: verify result of received request before sending the next one.
I don't know why I forgot this...

rafal
(This used to be commit d5f7141a6c76d80d564500d59fd07cc8edb8127d)
2007-10-10 14:28:19 -05:00
Stefan Metzmacher
65a50f46c8 r19699: - use better names for the site strings
- use the client_site when creating the server object

metze
(This used to be commit b02d0e1be343c7d609715237dc842702b6fbe231)
2007-10-10 14:28:12 -05:00
Rafal Szczesniak
b5bdec2f54 r19640: add some comments
rafal
(This used to be commit 1ea37bf3b32a7f534b3ae1918fc6336ef062f8ab)
2007-10-10 14:25:23 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10 14:25:00 -05:00
Rafal Szczesniak
4e61cee33c r19587: Fix indentation and correctly set error string when completing
a composite call - don't leave it unset.

rafal
(This used to be commit 8bd57beca19bd2c76d58b64ddd12553b0adce595)
2007-10-10 14:24:57 -05:00
Rafal Szczesniak
cde653b55a r19586: draft version of libnet_UserList function. still a bit of work
to do left.

rafal
(This used to be commit 4e6d479b0707a4b48f4ca7c2a042bbf9627411f9)
2007-10-10 14:24:57 -05:00
Rafal Szczesniak
6317ba1cf7 r19584: add the new file to the build.
rafal
(This used to be commit 936e87b89d22c8ddd1058766fc3d6e5ada9035da)
2007-10-10 14:24:57 -05:00
Rafal Szczesniak
62a1cb27f1 r19583: a few prerequisite functions called from within libnet functions
(in this case domain related) to ensure certain conditions before
doing what libnet function is expected to do.

rafal
(This used to be commit e3159ceeede2865b0252ee24497498ec9ffa432f)
2007-10-10 14:24:56 -05:00
Jelmer Vernooij
5a6e2bc9ae r19573: Move secrets.o into param/ (subsystems haven't been integrated yet).
(This used to be commit 8143de855c0b65346b2d8e59ecdb78952927de4a)
2007-10-10 14:24:55 -05:00
Simo Sorce
7f833458ca r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc225b83e9f63ac6d75bffc4c08eb6b620)
2007-10-10 14:24:38 -05:00
Stefan Metzmacher
7c95ae3aca r19482: remove pointless cast
metze
(This used to be commit 81a975100cbf7058de9245e51992d61cbdcb6473)
2007-10-10 14:21:41 -05:00
Rafal Szczesniak
f8a82ebe2b r19398: more comments
rafal
(This used to be commit 2ed463e3cd36434c25833a0905e432b5b7f14e25)
2007-10-10 14:21:25 -05:00
Andrew Bartlett
2ac52f809a r19309: Split out checks for LDB_SUCCESS from checks for the expected number
of returned entries.

Andrew Bartlett
(This used to be commit 84efd9ecd994b53817dde8c1ad995afb7ebc8192)
2007-10-10 14:21:06 -05:00
Andrew Bartlett
379e6598e1 r19308: Merge samsync fixes from SAMBA_4_0_RELEASE
Andrew Bartlett
(This used to be commit 331003239972d80864211377e864f7e469bd3d77)
2007-10-10 14:21:06 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09113a60689061a2de67711c9924708b)
2007-10-10 14:21:04 -05:00
Andrew Bartlett
57b8c5cd22 r19266: Add a target_hostname element to the binding struct. This allows us
to perform a lookup once, resolve the name to an IP, while still
communicating the full name to the lower layers, for kerberos etc.

This fixes 'net samdump', which was failing due to the schannel target
name being *smbserver.

Andrew Bartlett
(This used to be commit 0546f487f4cc99b5549dc1e457ea243d4bd66333)
2007-10-10 14:21:00 -05:00
Andrew Bartlett
9ce0de670b r19261: Fix use of unitialised variables. (The binding string is used, if not
NULL).

This showed up in a manual pre-TP3 test of the 'net samdump' code, and
shows the critical need for the windows testing infrustructure on the
build farm.

Andrew Bartlett
(This used to be commit 9cef40779ad987b506b1f514a67b5b1c8aea9969)
2007-10-10 14:20:59 -05:00
Rafal Szczesniak
71ec249e02 r19053: match the flag values with the actual equivalents in samr.idl
rafal
(This used to be commit 07aee708118070f99d42e8a25e28680e79c8f49c)
2007-10-10 14:20:32 -05:00
Rafal Szczesniak
89e4387a08 r19024: remove read-only and policy dependent fields and flags
from user modify routines.

rafal
(This used to be commit 7ca0d3dbcb9193c0f023e7c43764c7557925bb0e)
2007-10-10 14:20:29 -05:00