1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-17 15:33:16 +03:00
Commit Graph

144 Commits

Author SHA1 Message Date
Tim Potter
ce4902f8de r9994: Unused variable. 2007-10-10 13:36:27 -05:00
Jelmer Vernooij
200a8f6652 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
2007-10-10 13:35:01 -05:00
Simo Sorce
333ebb40d5 r9654: introduce the samdb_search_dn call 2007-10-10 13:34:38 -05:00
Andrew Tridgell
96298af202 r9643: fixed samsync code for the new dn explode semantics 2007-10-10 13:34:36 -05:00
Simo Sorce
31c69d0655 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
2007-10-10 13:33:33 -05:00
Simo Sorce
692e35b779 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
2007-10-10 13:33:32 -05:00
Steve French
bafd3afbef r9309: Incorrect null pointer check in return from talloc.
Found by coverity.
2007-10-10 13:33:23 -05:00
Rafal Szczesniak
f0d51b78c0 r9090: Another field in usermod function - account flags.
rafal
2007-10-10 13:31:15 -05:00
Rafal Szczesniak
dfa2cc6c4e r9037: New fields in usermod function - allow_password_change and
force_password_change datetime.

rafal
2007-10-10 13:31:10 -05:00
Andrew Bartlett
257240b0e2 r8981: Add comments, fix typos (in attribute names) and check for errors in
SamSync and 'net join'.

Andrew Bartlett
2007-10-10 13:31:03 -05:00
Jelmer Vernooij
8d9c18a1b4 r8974: Support makefile fragments in .mk files 2007-10-10 13:31:01 -05:00
Andrew Bartlett
5547c4e6f6 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
2007-10-10 13:31:01 -05:00
Andrew Bartlett
c1f8cab3e3 r8952: Partial work commit to find the DN of the new machine account - we
will use ldb to add servicePrincipalNames to this.

Andrew Bartlett
2007-10-10 13:30:59 -05:00
Rafal Szczesniak
bbe7e726af r8904: Split off the query stage as a separate function.
rafal
2007-10-10 13:30:17 -05:00
Rafal Szczesniak
59769977e8 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
2007-10-10 13:30:16 -05:00
Andrew Bartlett
d2789c4260 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
2007-10-10 13:30:11 -05:00
Rafal Szczesniak
109fc94c13 r8845: Removing unnecessary string length calculations. Thanks abartlet
for noticing that.

rafal
2007-10-10 13:30:11 -05:00
Rafal Szczesniak
da7a31d707 r8808: More comments.
rafal
2007-10-10 13:30:07 -05:00
Rafal Szczesniak
1bc3162e94 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
2007-10-10 13:30:06 -05:00
Andrew Bartlett
1f071b0609 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
2007-10-10 13:30:05 -05:00
Rafal Szczesniak
eaaefa374c r8789: Send new monitor messages from userdel routine.
rafal
2007-10-10 13:30:05 -05:00
Rafal Szczesniak
40061d7bd6 r8788: New monitor messages.
rafal
2007-10-10 13:30:05 -05:00
Andrew Bartlett
533e445353 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
2007-10-10 13:30:04 -05:00
Andrew Bartlett
bf594c1022 r8771: Extend the SamSync code out to groups and aliases, as well as deleting.
Andrew Bartlett
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
5be8479d5c r8761: Propagate changes in monitor messaging code.
rafal
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
4a6ab58133 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
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
266aaacf0b r8759: Another couple of fields in usermod routine.
rafal
2007-10-10 13:30:03 -05:00
Andrew Bartlett
1e0f7792bb 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
2007-10-10 13:30:02 -05:00
Andrew Bartlett
2eadcf4669 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
2007-10-10 13:30:01 -05:00
Andrew Bartlett
258e5e302e r8741: Kill warnings about enums not fully enumerated, as we will never use
all the branches.

Andrew Bartlett
2007-10-10 13:30:00 -05:00
Rafal Szczesniak
1a779f8643 r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
4b3aa69e70 r8717: Add monitor message emiting in userdel and usermod calls.
rafal
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
bee1c9ec2d 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
2007-10-10 13:29:54 -05:00
Andrew Bartlett
00e1cf7941 r8248: Make these comments more accurate.
Andrew Bartlett
2007-10-10 13:19:25 -05:00
Andrew Bartlett
44338b2852 r8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett
2007-10-10 13:19:25 -05:00
Stefan Metzmacher
5933b00461 r8235: fix the build
metze
2007-10-10 13:19:23 -05:00
Stefan Metzmacher
e601042c07 r8232: remove samr_String and netr_String as they are the same as lsa_String
metze
2007-10-10 13:19:22 -05:00
Stefan Metzmacher
d75c97b847 r8136: remove unused var
metze
2007-10-10 13:19:12 -05:00
Rafal Szczesniak
88e7b9c237 r8098: Add my copyright and remove unecessary header dependency.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
9885749e36 r8096: Remove function that has became libnet_Lookup fuction.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
6736ab102f r8095: Fix compiler warning.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
798b00c24a r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
d0ea136356 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
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
b28d2e9639 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
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
50cd94be0f 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
2007-10-10 13:18:40 -05:00
Rafal Szczesniak
345a71a08e r7748: Use state structure in connection with io to get returned address.
rafal
2007-10-10 13:18:30 -05:00
Rafal Szczesniak
15e2a67fe0 r7734: A few missing pieces...
rafal
2007-10-10 13:18:28 -05:00
Rafal Szczesniak
b9deaa995d r7732: Implementation of very basic lookup function (to be used in more
specific routines like resolving a pdc).
Also, couple of formatting fixes.

rafal
2007-10-10 13:18:27 -05:00
Andrew Tridgell
3a3025485b r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
2007-10-10 13:18:15 -05:00
Tim Potter
0c1f54461c r7630: Unused variable. 2007-10-10 13:18:15 -05:00