Gerald Carter [Fri, 12 May 2006 15:17:35 +0000 (15:17 +0000)]
r15543: New implementation of 'net ads join' to be more like Windows XP.
The motivating factor is to not require more privileges for
the user account than Windows does when joining a domain.
The points of interest are
* net_ads_join() uses same rpc mechanisms as net_rpc_join()
* Enable CLDAP queries for filling in the majority of the
ADS_STRUCT->config information
* Remove ldap_initialized() from sam/idmap_ad.c and
libads/ldap.c
* Remove some unnecessary fields from ADS_STRUCT
* Manually set the dNSHostName and servicePrincipalName attribute
using the machine account after the join
Thanks to Guenther and Simo for the review.
Still to do:
* Fix the userAccountControl for DES only systems
* Set the userPrincipalName in order to support things like
'kinit -k' (although we might be able to just use the sAMAccountName
instead)
* Re-add support for pre-creating the machine account in
a specific OU
(This used to be commit 4c4ea7b20f44cd200cef8c7b389d51b72eccc39b)
James Peach [Wed, 10 May 2006 22:33:10 +0000 (22:33 +0000)]
r15529: Initialise our saved uid and gid so that we can tell when
we created the profiling shmem segment and don't bogusly
refuse to look at it.
(This used to be commit eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2)
r15523: Honour the time_offset also when verifying kerberos tickets. This
prevents a nasty failure condition in winbindd's pam_auth where a tgt
and a service ticket could have been succefully retrieved, but just not
validated.
James Peach [Mon, 8 May 2006 03:20:49 +0000 (03:20 +0000)]
r15508: Use clock_gettime for profiling timstamps if it is available. Use
the fastest clock available on uniprocessors.
(This used to be commit d44862928206b524f826bd7c2997ab5353c0b6a0)
Andrew Bartlett [Sun, 7 May 2006 15:05:32 +0000 (15:05 +0000)]
r15492: Without this patch, the LDAP client libs will call abort() in
ldap_get_values_len, because they were handed a NULL msgs pointer, for
example in ads_pull_sid().
This occurs when the AD server fails at the connect stage. (The
toubled AD server is actually Samba4 in my example).
Deryck Hodge [Fri, 5 May 2006 21:37:13 +0000 (21:37 +0000)]
r15466: Install the images for SWAT.
And we don't install any JavaScript (hold over from a prior SWAT
svn ci trunk/ branches/SAMBA_3_0 -m
(This used to be commit 9bf07ba6cc82113b94f4d1bdac3a95262fff18c0)
Gerald Carter [Fri, 5 May 2006 19:24:48 +0000 (19:24 +0000)]
r15462: replace the use of OpenLDAP's ldap_domain2hostlist() for
locating AD DC's with out own DNS SRV queries.
Testing on Linux and Solaris.
(This used to be commit cf71f88a3cdcabf99c0798ef4cf8c978397a57eb)
r15454: As testing, documentation and samba4 idl indicate that there is no known
difference between samr_query_domain_info and samr_query_domain_info2,
wrap the info2 call around the info call. There have been various "could
not access LDAP when not root" bugs lurking around in
samr_query_domain_info2 anyway.
James Peach [Fri, 5 May 2006 07:15:45 +0000 (07:15 +0000)]
r15450: Change profiling data macros to use stack variables rather than
globals. This catches mismatched start/end calls and removes
the need for special nested profiling calls.
(This used to be commit ee750498812190edd3ec52ca3c750258f3b8a97a)
James Peach [Fri, 5 May 2006 03:07:00 +0000 (03:07 +0000)]
r15447: Teach "smbd -b" to emit the sizes of a few more types that
might be interesting. Push the spacing across a bit so that
it all lines up nicely.
(This used to be commit efd961e4eefb774c7bdaef098e2b67062a7dffd3)
James Peach [Fri, 5 May 2006 02:06:37 +0000 (02:06 +0000)]
r15446: Tidy up the formatting of locking debug messages and make it more
consistent. Bring oplocks withing the purview of the locking debug
channel.
(This used to be commit e817cfd7d3a42d141198122eada58b5a7ba90e9c)
Jeremy Allison [Thu, 4 May 2006 19:24:20 +0000 (19:24 +0000)]
r15444: Fix from Jim to ensure we do a wildcard search for SID's
starting with the global SAM sid, not an exact search.
Jeremy.
(This used to be commit 755c272ebf5d0f4de15178814f998d1ec5ecb718)
r15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
Also return the hostname for the level 6 call (to be consistent with the
server name in level 2).
James Peach [Thu, 4 May 2006 00:45:31 +0000 (00:45 +0000)]
r15425: Use dynamic buffers in the IRIX nsswithch module to prevent truncation
of long group lists.
(This used to be commit d348d796c16679297e1f0304b8b2ba0f42010733)
James Peach [Thu, 4 May 2006 00:35:05 +0000 (00:35 +0000)]
r15424: Implement a "stacktrace" smbcontrol option using libunwind's remote
stack tracing support. This provides an easy way for users to provide
stack traces (hopefully it will be implemented on something other than
ia64).
(This used to be commit 0b5e07e12daa98095dae27e0a6d53fe8ec3f3700)
Jeremy Allison [Wed, 3 May 2006 16:07:21 +0000 (16:07 +0000)]
r15419: Never write the same function twice :-). In a traversal
function we must copy the data before modifying.
Jeremy.
(This used to be commit ef4c70f58edf15dc93b22f2c80e15113ee2a46df)
Jeremy Allison [Wed, 3 May 2006 02:14:09 +0000 (02:14 +0000)]
r15402: Fix for bug #3587. Dead entries can be left in the locking
db. Make this db self-cleaning on first read of entry after
open, and also on smbstatus -b call. Needs more testing when
I get back from Boston but passes valgrind at first look.
Jeremy.
(This used to be commit c66531096325848d1476054df5d53ad05c2ffc83)
Gerald Carter [Tue, 2 May 2006 12:13:23 +0000 (12:13 +0000)]
r15393: remove extra call to fallback user creation on member servers; it's handled by the smb_getpwnam() call deeper in
(This used to be commit 7433dba78bda27cd6366a49b0efc10a387439ccd)
Jeremy Allison [Sun, 30 Apr 2006 00:36:26 +0000 (00:36 +0000)]
r15341: Ok I give up, I've been beaten by bug reports. People
just don't get why "guest ok" is not allowed in usershares.
Added "usershare allow guests" bool parameter that allows
this, reved usershare file version to VERSION#2 which
allows this. Updated user tools.
This should now be (finally) finished and I'll add
the new parameter docs and a HOWTO.
Jeremy.
(This used to be commit cdc3aa9d07d568570f2117bea9f1a4d227b3a35d)
Jeremy Allison [Sat, 29 Apr 2006 23:41:09 +0000 (23:41 +0000)]
r15336: Unknown escape sequence: '\305' - should have been '\n'.
(How did that get in there ?).
Jeremy
(This used to be commit 780b71d300da71acc8b4f0fe10c1ae78c71e23c4)
Jeremy Allison [Sat, 29 Apr 2006 23:33:39 +0000 (23:33 +0000)]
r15333: Paulg broke the function prototyping of decl_static_XX.
Needs to be (void), not (). Paulg please check this.
Jeremy.
(This used to be commit ed0f36e2c2475bf9b8eb9c5d937799c85f32bd6f)
Gerald Carter [Fri, 28 Apr 2006 15:37:15 +0000 (15:37 +0000)]
r15311: look at the NT password (not lanman one) when determining if smbpasswd -e should probably for a password
(This used to be commit 3522b53aecb5293747b66250279417f9edf876f1)
r15305: Let winbind search by sid directly (or in windows terms: "bind to a
sid"); works in all AD versions I tested. Also add "net ads sid" search
tool.
Jeremy Allison [Thu, 27 Apr 2006 13:42:18 +0000 (13:42 +0000)]
r15293: Don't ever set O_SYNC on open unless "strict sync = yes".
This could be the cause of the perf. problem reported
between 3.0.14a and 3.0.2x. Lufthansa has *wireless*
on their flights to the USA now... (I'm in heaven ! :-).
Jeremy.
(This used to be commit dbc03125f2643f8ecff8e901cb23fa6408cce011)
Paul Green [Wed, 26 Apr 2006 15:41:25 +0000 (15:41 +0000)]
r15283: Oh yeah. The build farm doesn't do much with head. OK, here is the patch to SAMBA_3_0 to declare prototypes for the initialization functions. These are the same changes I just made to head. --paulg
(This used to be commit 17774387ad879b6a72dd1cf406326318add31b04)
r15240: Correctly disallow unauthorized access when logging on with the
kerberized pam_winbind and workstation restrictions are in effect.
The krb5 AS-REQ needs to add the host netbios-name in the address-list.
We don't get the clear NT_STATUS_INVALID_WORKSTATION code back yet from
the edata of the KRB_ERROR but the login at least fails when the local
machine is not in the workstation list on the DC.
Paul Green [Mon, 24 Apr 2006 17:12:22 +0000 (17:12 +0000)]
r15218: Update Makefile.in to avoid building libmsrpc.so on systems that do not support shared libraries.
(This used to be commit a1c12d7949f9110530526cc7133424e842cdcc71)