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

199 Commits

Author SHA1 Message Date
Günther Deschner
966d7244d7 Enable libnetjoin debugging for now but avoid printing passwords.
The gen_ndr needs proper fixing still.

Guenther
2008-03-07 18:31:13 +01:00
Günther Deschner
8cd07c1fa8 Move talloc_init to the right place in "net ads join".
Guenther
2008-03-04 11:04:36 +01:00
Günther Deschner
a5c6347644 Remove original copy of now redundant join code.
Jerry, I checked this very carefully that nothing got lost. The only thing I need to
re-add still is the normalized DN handling for account precreation in "net ads join".

Guenther
2008-02-28 19:54:35 +01:00
Günther Deschner
735235e32b Some fixes for net ads join (uninitialized vars).
Guenther
2008-02-28 14:29:44 +01:00
Günther Deschner
9a7a2777e4 Use libnet_Join() for "net ads join".
Guenther
2008-02-28 14:19:36 +01:00
Günther Deschner
b0d1db95e5 Nicen error output in net_ads_leave.
Guenther
2008-02-28 14:11:21 +01:00
Günther Deschner
5d30e9f9fe Re-arrange dns update block during "net ads join" a little.
Guenther
2008-02-28 13:04:30 +01:00
Günther Deschner
11a19e88e2 Use libnet_Unjoin() for "net ads leave".
Guenther
2008-02-28 12:09:06 +01:00
Günther Deschner
6f8e83b430 Some cosmetics for net_derive_salting_principal().
Guenther
2008-02-28 11:38:00 +01:00
Günther Deschner
ea609d1b0e Fix some more callers of PAC_DATA.
Guenther
2008-02-17 02:12:00 +01:00
Günther Deschner
7a3fe68bef Apply const to rpccli_lsa_query_info_policy() and rpccli_lsa_query_info_policy2().
Guenther
2008-01-15 16:40:22 +01:00
Volker Lendecke
b66ac8567c Fix some warnings -- Jeremy, please check 2008-01-15 11:01:18 +01:00
Günther Deschner
88d6683872 Remove unused string.
Guenther
2008-01-10 13:02:10 +01:00
Günther Deschner
a3b348b113 Use ads_get_upn() in net_derive_salting_principal().
Guenther
2008-01-08 14:07:18 +01:00
Jeremy Allison
52dc5eaef2 Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Jeremy Allison
b676262a78 The usual !pstring...
Jeremy.
2007-12-04 16:56:18 -08:00
Günther Deschner
6bf2c8038c Move param helper routines to one place.
Guenther
2007-11-30 22:25:01 +01:00
Volker Lendecke
1fab16ffb8 Remove some statics 2007-11-27 14:18:47 +01:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Michael Adam
cc4599fdc1 r25201: Fight those red bars... 2007-10-10 12:30:51 -05:00
Michael Adam
f1f4758e2c r25200: Fix a debug message. 2007-10-10 12:30:51 -05:00
Michael Adam
5a16da2185 r25198: Change net_rpc_join_ok() to return NTSTATUS for better
error propagation.

Michael
2007-10-10 12:30:50 -05:00
Rafal Szczesniak
86af9fedad r24853: Rename function as Jerry asked.
s/net_use_upn_machine_account/net_use_krb_machine_account/

rafal
2007-10-10 12:30:28 -05:00
Rafal Szczesniak
30d99d8ac3 r24789: Add implementation of machine-authenticated connection to netlogon
pipe used when connecting to win2k and newer domain controllers. The
server may be configured to deny anonymous netlogon connections which
would stop domain join verification step. Still, winnt domains require
such smb sessions not to be authenticated using machine credentials.
Creds employed in smb session cannot have a username in upn form, so
provide the separate function to use machine account.

rafal
2007-10-10 12:30:21 -05:00
Günther Deschner
e70bf0ecc3 r24432: Expand kerberos_return_pac() so that it can be used in winbindd.
Guenther
2007-10-10 12:29:46 -05:00
Volker Lendecke
6e6eea64a5 r24107: Fix bug 4849. Thanks to Matthijs Kooijman <matthijs@stdin.nl> 2007-10-10 12:29:07 -05:00
Günther Deschner
4cada7c148 r23973: For debugging, add (undocumented) net ads kerberos commands (kinit, renew,
pac).

Guenther
2007-10-10 12:28:51 -05:00
Günther Deschner
7e2fb14d6e r23968: Harmonize net's password prompts.
Guenther
2007-10-10 12:28:50 -05:00
Stefan Metzmacher
00909194a6 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
2007-10-10 12:28:38 -05:00
Günther Deschner
311bbbafa6 r23834: Allow to pass an ADS_STRUCT pointer down to the dump function callback in
libads.

Guenther
2007-10-10 12:28:32 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
a2befee3f2 r23648: Allow to list a custom krb5 keytab file with:
net ads keytab list /path/to/krb5.keytab

Guenther
2007-10-10 12:23:41 -05:00
Volker Lendecke
9b8df24107 r22954: More messaging_register 2007-10-10 12:22:11 -05:00
Volker Lendecke
0ad4b1226c r22736: Start to merge the low-hanging fruit from the now 7000-line cluster patch.
This changes "struct process_id" to "struct server_id", keeping both is
just too much hassle. No functional change (I hope ;-))

Volker
2007-10-10 12:21:52 -05:00
Gerald Carter
3f588e0b65 r22729: add help text for osver and osname options to 'net ads join' (patch from Dnailo A.) 2007-10-10 12:21:51 -05:00
Gerald Carter
3004cc6e59 r22728: Patch from Danilo Almeida <dalmeida@centeris.com>:
When asked to create a machine account in an OU as part
of "net ads join" and the account already exists in another
OU, simply move the machine object to the requested OU.
2007-10-10 12:21:51 -05:00
Günther Deschner
9ec76c5427 r22479: Add "net ads keytab list".
Guenther
2007-10-10 12:19:37 -05:00
Gerald Carter
5035778ae4 r21888: Add the osname and osver options to 'net ads join' as discussed
on the samba-technical ml.

I'll add a 'net ads set attribute=value' utility later
rather than the original 'net ads setmachineupn' patch that
was also posted to the tech ml.
2007-10-10 12:18:45 -05:00
Jeremy Allison
df07a662e3 r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
2007-10-10 12:18:16 -05:00
Jeremy Allison
cbe725f1b0 r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-)
Jeremy.
2007-10-10 12:18:16 -05:00
Simo Sorce
5b4838f62a r21606: Implement escaping function for ldap RDN values
Fix escaping of DN components and filters around the code
Add some notes to commandline help messages about how to pass DNs

revert jra's "concistency" commit to nsswitch/winbindd_ads.c, as it was
incorrect.
The 2 functions use DNs in different ways.

- lookup_usergroups_member() uses the DN in a search filter,
and must use the filter escaping function to escape it
Escaping filters that include escaped DNs ("\," becomes "\5c,") is the
correct way to do it (tested against W2k3).

- lookup_usergroups_memberof() instead uses the DN ultimately as a base dn.
Both functions do NOT need any DN escaping function as DNs can't be reliably
escaped when in a string form, intead each single RDN value must be escaped
separately.

DNs coming from other ldap calls (like ads_get_dn()), do not need escaping as
they come already escaped on the wire and passed as is by the ldap libraries

DN filtering has been tested.
For example now it is possible to do something like:
'net ads add user joe#5' as now the '#' character is correctly escaped when
building the DN, previously such a call failed with Invalid DN Syntax.

Simo.
2007-10-10 12:18:16 -05:00
Volker Lendecke
c8ae60ed65 r21064: The core of this patch is
void message_register(int msg_type,
                      void (*fn)(int msg_type, struct process_id pid,
-                                void *buf, size_t len))
+                                void *buf, size_t len,
+                                void *private_data),
+                     void *private_data)
 {
        struct dispatch_fns *dfn;

So this adds a (so far unused) private pointer that is passed from
message_register to the message handler. A prerequisite to implement a tiny
samba4-API compatible wrapper around our messaging system. That itself is
necessary for the Samba4 notify system.

Yes, I know, I could import the whole Samba4 messaging system, but I want to
do it step by step and I think getting notify in is more important in this
step.

Volker
2007-10-10 12:17:32 -05:00
Gerald Carter
ff8f27108d r20903: Replace the hardcoded "smb.conf" string with the dyn_CONFIGFILE 2007-10-10 12:17:18 -05:00
Jeremy Allison
97e248f89a r20857: Silence gives assent :-). Checking in the fix for
site support in a network where many DC's are down.
I heard via Volker there is still a bug w.r.t the
wrong site being chosen with trusted domains but
we'll have to layer that fix on top of this.
Gd - complain if this doesn't work for you.
Jeremy.
2007-10-10 12:17:14 -05:00
Gerald Carter
3486acd3c3 r20173: DNS update fixes:
* Fix DNS updates for multi-homed hosts
* Child domains often don't have an NS record in
  DNS so we have to fall back to looking up the the NS
  records for the forest root.
* Fix compile warning caused by mismatched 'struct in_addr'
  and 'in_addr_t' parameters called to DoDNSUpdate()
2007-10-10 12:16:29 -05:00
Jim McDonough
cc26e2f9a1 r20119: Update help info indicating how to use separators (forward slash only)
and properly use backslashes in "net ads join computername="
2007-10-10 12:16:26 -05:00
Volker Lendecke
55dc4741cf r19766: Fix a const-warning. Jerry, what did you want to fix with this line?
Volker
2007-10-10 12:15:54 -05:00
Gerald Carter
c787983336 r19762: libaddns/*[ch] code fixes donated by Centeris Corporation
(http://www.centeris.com/) under my copyright.

* Rework error reporting to use DNS_ERROR instead
  of int32
* Convert memory allocation to use talloc()
* Generalize the DNS request/response packet marshalling
* Fix the secure update requests
2007-10-10 12:15:53 -05:00