1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

297 Commits

Author SHA1 Message Date
Andrew Bartlett
5a522b3100 r10486: This is a merge of Brad Henry's 'net join' rework, to better perform
an ADS join, particularly as a DC.  This represents the bulk of his
Google SOC work, and I'm very pleased to intergrate it into the tree.
(Metze will intergrate the DRSUAPI work later).

Both metze and myself have also put a lot of time into this patch, and
in mentoring Brad in general.  In return, Brad has been a very good
student, and has taken the comments well.

Since it's last appearance on samba-technical@, I have made
correctness and valgrind fixups, as well as adding a new 'BINDING'
mode to the libnet_rpc routines.  This allows the exact binding string
to be passed down from the torture code, including options and exact
target host.

Andrew Bartlett
(This used to be commit d6fa105fdabbeb83a9b0e50dad49d1649afdb2a4)
2007-10-10 13:38:53 -05:00
Jelmer Vernooij
6812c73534 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
(This used to be commit 4f0d7f75b99c7f4388d8acb0838577d86baf68b5)
2007-10-10 13:38:30 -05:00
Jelmer Vernooij
5b02ee9b9d r10336: Add sconscript for a couple more subsystems.
(This used to be commit 59d4450453c25f5cce9b67b808ff0c4433c1d194)
2007-10-10 13:38:29 -05:00
Tim Potter
58a74c723d r9994: Unused variable.
(This used to be commit ce4902f8dea2b6f3568960278e08395ea3927146)
2007-10-10 13:36:27 -05:00
Jelmer Vernooij
b674411eb4 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652cb2de7a8037a7a4c2a204b50aee2b1)
2007-10-10 13:35:01 -05:00
Simo Sorce
61aaf82b62 r9654: introduce the samdb_search_dn call
(This used to be commit 333ebb40d55c60465564b894d5028b364e99ee00)
2007-10-10 13:34:38 -05:00
Andrew Tridgell
b4d171d4df r9643: fixed samsync code for the new dn explode semantics
(This used to be commit 96298af202f994c3d5d0c7f5dacd1197a740f766)
2007-10-10 13:34:36 -05:00
Simo Sorce
ac90ddfdb2 r9392: Fix ldb_dn_compose to make build farm happy
Add ldb_dn_string_compose so that you can build a dn starting from a
struct ldb_dn base and a set of parameters to be composed in a format
string with the same syntax of printf
(This used to be commit 31c69d0655752cc8ea3bc5b7ea87792291302091)
2007-10-10 13:33:33 -05:00
Simo Sorce
3e4c4cff21 r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
Provide more functions to handle DNs in this form
(This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10 13:33:32 -05:00
Steve French
4ed7904b7e r9309: Incorrect null pointer check in return from talloc.
Found by coverity.
(This used to be commit bafd3afbef9b8d3a8baa55d4b31cc62bfeeed459)
2007-10-10 13:33:23 -05:00
Rafal Szczesniak
6f6e42c856 r9090: Another field in usermod function - account flags.
rafal
(This used to be commit f0d51b78c040937bd27857c063fae215a3f0f465)
2007-10-10 13:31:15 -05:00
Rafal Szczesniak
9d7d5ea229 r9037: New fields in usermod function - allow_password_change and
force_password_change datetime.

rafal
(This used to be commit dfa2cc6c4ed8273b1d3ee604954c81c75f0890bd)
2007-10-10 13:31:10 -05:00
Andrew Bartlett
64cdbaf8f1 r8981: Add comments, fix typos (in attribute names) and check for errors in
SamSync and 'net join'.

Andrew Bartlett
(This used to be commit 257240b0e29da14f7a2e660182b367304a5fa530)
2007-10-10 13:31:03 -05:00
Jelmer Vernooij
916505f661 r8974: Support makefile fragments in .mk files
(This used to be commit 8d9c18a1b4cf31ebae1d0c84b00b4d781f55de66)
2007-10-10 13:31:01 -05:00
Andrew Bartlett
1af6537520 r8970: Add 'ADS' join support to Samba4.
We now fill in the servicePrincipalName over LDAP, just like XP does,
and store the kvno in our local db.

Andrew Bartlett
(This used to be commit 5547c4e6f6a0c163aa38fa4d4ed8c627ae12bf80)
2007-10-10 13:31:01 -05:00
Andrew Bartlett
50468b3dfe r8952: Partial work commit to find the DN of the new machine account - we
will use ldb to add servicePrincipalNames to this.

Andrew Bartlett
(This used to be commit c1f8cab3e3d3eaf4af372675656fe1a4da68a9f8)
2007-10-10 13:30:59 -05:00
Rafal Szczesniak
088166461d r8904: Split off the query stage as a separate function.
rafal
(This used to be commit bbe7e726af8c61108a7bca1e10e9340bbe37f3ef)
2007-10-10 13:30:17 -05:00
Rafal Szczesniak
aff62e9ee2 r8896: Handle more complex case where field being changed doesn't appear
alone in any of userinfo levels. What's needed is extra query step
to fill the userinfo structure and then modify a single field.
The other way to do it is userinfo level 21 with bitmap flags set,
but first all field flags need to be found.

rafal
(This used to be commit 59769977e8ebc54be7fa80f19638b634f52df515)
2007-10-10 13:30:16 -05:00
Andrew Bartlett
6cec8025b0 r8847: Rework the Samba4 'net join' code. I'm trying to get this closer to
what WinXP does when joining an AD domain, but in the meantime this
removes the excess unions, and uses the LSA pipe in same way XP does.

Andrew Bartlett
(This used to be commit d2789c426090c325f6535cdce380ac0f4e22c3c7)
2007-10-10 13:30:11 -05:00
Rafal Szczesniak
5dd9940da8 r8845: Removing unnecessary string length calculations. Thanks abartlet
for noticing that.

rafal
(This used to be commit 109fc94c13ad04feaaa3f9c7666ad431b3255ae6)
2007-10-10 13:30:11 -05:00
Rafal Szczesniak
f95a494e97 r8808: More comments.
rafal
(This used to be commit da7a31d7073d156ef5c593578a05fecf770ebc93)
2007-10-10 13:30:07 -05:00
Rafal Szczesniak
5cc8a42a05 r8807: Modifying datetime field using struct timeval argument rather than
text-based, after recent discussion with both Andrews :)

Basic test seems to work (at least it doesn't fail now).

rafal
(This used to be commit 1bc3162e9441aeae1d8c4b4f03b5b75eb848f4bf)
2007-10-10 13:30:06 -05:00
Andrew Bartlett
66b2a04346 r8790: Finish the migration of aliases and privilages with SamSync, by adding
templating support for foreignSecurityPrincipals to the samdb module.
This is an extension beyond what microsoft does, and has been very
useful :-)

The setup scripts have been modified to use the new template, as has
the SAMR and LSA code.

Other cleanups in LSA remove the assumption that the short domain name
is the first component of the realm.

Also add a lot of useful debug messages, to make it clear how/why the
SamSync may have gone wrong.  Many of these should perhaps be hooked
into an error string.

Andrew Bartlett
(This used to be commit 1f071b0609c5c83024db1d4a7d04334a932b8253)
2007-10-10 13:30:05 -05:00
Rafal Szczesniak
40119dcb1d r8789: Send new monitor messages from userdel routine.
rafal
(This used to be commit eaaefa374ce11ab5dc3738bea046d33ed879fc4c)
2007-10-10 13:30:05 -05:00
Rafal Szczesniak
0102f2752f r8788: New monitor messages.
rafal
(This used to be commit 40061d7bd66be702d92c80da2c5f955b640eda22)
2007-10-10 13:30:05 -05:00
Andrew Bartlett
41b6e94665 r8775: More SamSync work. This is really just mechanical...
I need to take a grip over the ForiegnSecurityPrincipals, as the
SamSync currently fails on adding some aliases and privilages because
it can't find their entry.

Andrew Bartlett
(This used to be commit 533e44535392fdb292cfff3cdcda9c38ec329d01)
2007-10-10 13:30:04 -05:00
Andrew Bartlett
af48ca4810 r8771: Extend the SamSync code out to groups and aliases, as well as deleting.
Andrew Bartlett
(This used to be commit bf594c1022f5ed59c06cb423411f94483b168cbb)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
b2ed6343cb r8761: Propagate changes in monitor messaging code.
rafal
(This used to be commit 5be8479d5cf119bcda4046bf1c5d7c3b876e718d)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
a04e899bc0 r8760: Rework monitor messaging code a bit, as Metze once suggested.
enum type has now been replaced with unsigned 32-bit field and
message data is passed as void pointer.

This allows various extension implementers to plug their monitor
messages in more easily.

rafal
(This used to be commit 4a6ab58133a59d3da3209b3e46c2a8cf848d25e7)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
2440a008a8 r8759: Another couple of fields in usermod routine.
rafal
(This used to be commit 266aaacf0be955096d53e2a967bdaa5d0c5558ed)
2007-10-10 13:30:03 -05:00
Andrew Bartlett
6d26a7114f r8752: With all the infrustructure done, details like a SamSync migration
into LDB are actually quite easy.

This brings us the users, and sets basic domain information.

You are expected to have provisioned with the settings for the target
domain, and have joined the domain as a BDC.  Then simply 'net
samsync'.

Now we just need to flesh out the delta types.

Andrew Bartlett
(This used to be commit 1e0f7792bb29b17c23197a5e42ee8cabb0cf17d0)
2007-10-10 13:30:02 -05:00
Andrew Bartlett
82f96542fa r8744: Split 'net samdump' out into a separate file
Work on the talloc memory tree, as I think talloc_reference and other
things were biting me.

Crush unions in the name of code reform. ;-)

Andrew Bartlett
(This used to be commit 2eadcf46699f1cc7adb2066e17096f70c7b73998)
2007-10-10 13:30:01 -05:00
Andrew Bartlett
44ff3305f8 r8741: Kill warnings about enums not fully enumerated, as we will never use
all the branches.

Andrew Bartlett
(This used to be commit 258e5e302e461d789e5c353e1a0d81ce33b52f6b)
2007-10-10 13:30:00 -05:00
Rafal Szczesniak
64f31e424b r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
(This used to be commit 1a779f8643c43677c62fed6ec4bfb54b08647f5b)
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
e5f6083092 r8717: Add monitor message emiting in userdel and usermod calls.
rafal
(This used to be commit 4b3aa69e70ed5d6e78f6f45f8f43649ad9ae108d)
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
6868795a39 r8692: Starting parts of code to provide user modify functionality.
It's more like a placeholder now, than a working code. Just don't
want to hang it around my laptop only.

rafal
(This used to be commit bee1c9ec2dea4cad703386af35470c7d74cef4b0)
2007-10-10 13:29:54 -05:00
Andrew Bartlett
96ead1a02b r8248: Make these comments more accurate.
Andrew Bartlett
(This used to be commit 00e1cf79410eb7d31958ba272d87eb2d379c3613)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
5c87688051 r8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett
(This used to be commit 44338b2852bff36d642ea0296d480d384e88fbcb)
2007-10-10 13:19:25 -05:00
Stefan Metzmacher
e81eb91e00 r8235: fix the build
metze
(This used to be commit 5933b00461e6e7c7f0ab60d61f9be215aa68c317)
2007-10-10 13:19:23 -05:00
Stefan Metzmacher
0b92507760 r8232: remove samr_String and netr_String as they are the same as lsa_String
metze
(This used to be commit e601042c07d7b6eed0dc34e5b136d9266b8a0f81)
2007-10-10 13:19:22 -05:00
Stefan Metzmacher
637ba7f7e6 r8136: remove unused var
metze
(This used to be commit d75c97b8476357bee4d3ba5f8464193c8d296cdd)
2007-10-10 13:19:12 -05:00
Rafal Szczesniak
ce7a0d47ea r8098: Add my copyright and remove unecessary header dependency.
rafal
(This used to be commit 88e7b9c2371383c469e2db73d4c8dca70aca7586)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
45500d4176 r8096: Remove function that has became libnet_Lookup fuction.
rafal
(This used to be commit 9885749e36435b301c992e50d0a189860cfa4b5e)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
8cedebd993 r8095: Fix compiler warning.
rafal
(This used to be commit 6736ab102f60f8e14d10f430f3e5a0eef478bc81)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
4fa6a156bc r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
(This used to be commit 798b00c24ae30a08ac81342d13130a6a2f9d3a08)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
e6b54f7acf r8076: Put name resolution methods into libnet_context. This allows libnet based
application use methods of their own choice and makes it less dependent on
smb.conf parameters.
Use libnet_context in libnet_Lookup functions which is the way to pass
default name resolution methods if caller doesn't want to bother with
specifying them.

rafal
(This used to be commit d0ea136356bcb9c6c01120d8683b71e8689d5e5b)
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
d5f76aad22 r8075: Make rpc connect function part of libnet api, as I suppose many
implementers of more complex function might need to use it.
Also simplify io structure which essentially does the same thing
when connecting arbitrary rpc server or a domain pdc.

rafal
(This used to be commit b28d2e96392e89e39f2499f54b6e549a8f3cfb4b)
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
cc98a92bb0 r7816: Implementation of "shortcut" function for those (probably many) who
don't like to bother with netbios type names when looking for common
types: hosts (servers) and domain controllers. Also, apropriate tests

rafal
(This used to be commit 50cd94be0f876a3463aa58b7e0898e6b3340c4c2)
2007-10-10 13:18:40 -05:00
Rafal Szczesniak
7b23cd4588 r7748: Use state structure in connection with io to get returned address.
rafal
(This used to be commit 345a71a08e74ddf959680615d51488f8e989cba1)
2007-10-10 13:18:30 -05:00
Rafal Szczesniak
f7e3089c37 r7734: A few missing pieces...
rafal
(This used to be commit 15e2a67fe08daa722c55cd3afd46e838eb653e22)
2007-10-10 13:18:28 -05:00