tprouty/samba.git
20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:41:50 +0000 (23:41 +0000)]
(merge from 3.0)

JHT came up with a nasty (broken) torture case in preparing examples for
his book.

This prompted me to look at the code that reads the unix group list.  This
code did a lot of name -> uid -> name -> sid translations, which caused
problems.  Instead, we now do just name -> sid

I also cleaned up some interfaces, and client tools.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:38:49 +0000 (23:38 +0000)]
(merge from 3.0)

Changes to our PAM code to cope with the fact that we can't handle some
domains (in particular, the domain of the current machine, if it is not a PDC)

By changing the error codes, we now return values that PAM can correctly
use for better stacking of PAM modules - in particular of the password change
module.

This allows pam_winbind to co-exist with other pam modules for password changes.
Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:37:07 +0000 (23:37 +0000)]
(merge from 3.0)

auth/auth_util.c:
 - Fill in the 'backup' idea of a domain, if the DC didn't supply one.  This
   doesn't seem to occour in reality, hence why we missed the typo.

lib/charcnv.c:
lib/smbldap.c:
libads/ldap.c:
libsmb/libsmbclient.c:
printing/nt_printing.c:
 - all the callers to pull_utf8_allocate() pass a char ** as the first
   parammeter, so don't make them all cast it to a void **

nsswitch/winbind_util.c:
 - Allow for a more 'correct' view of when usernames should be qualified
   in winbindd.  If we are a PDC, or have 'winbind trusted domains only',
   then for the authentication returns stip the domain portion.
 - Fix valgrind warning about use of free()ed name when looking up our
   local domain.  lp_workgroup() is maniplated inside a procedure that
   uses it's former value.  Instead, use the fact that our local domain is
   always the first in the list.

--

Jerry rightly complained that we can't assume that the first domain is
our primary domain - new domains are added to the front of the list. :-(

Use a much more reliable 'flag test' instead.  (note:  changes winbind
structures, make clean).

--

Forgot to commit this for the 'get our primary domain' change.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:28:50 +0000 (23:28 +0000)]
(merge from 3.0)

Try to gain a bit more consistancy in the output of usernames from ntlm_auth:

Instead of returning a name in DOMAIN\user format, we now return it in the
same way that nsswtich does - following the rules of 'winbind use default
domain', in the correct case and with the correct seperator.

This should help sites who are using Squid or the new SASL code I'm working
on, to match back to their unix usernames.

--

Get the DOMAIN\username around the right way (I had username\domain...)

Push the unix username into utf8 for it's trip across the socket.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:25:56 +0000 (23:25 +0000)]
(merge from 3.0)

Remove testing hack

Make the name of the NTLMSSP client more consistant before we lock it in stone.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:23:59 +0000 (23:23 +0000)]
(merge from 3.0)

Move our basic password checking code from inside the authentication
subsystem into a seperate file - ntlm_check.c.

This allows us to call these routines from ntlm_auth.  The purpose of this
exercise is to allow ntlm_auth (when operating as an NTLMSSP server) to
avoid talking to winbind.  This should allow for easier debugging.

ntlm_auth itself has been reorgainised, so as to share more code between
the SPNEGO-wrapped and 'raw' NTLMSSP modes.  A new 'client' NTLMSSP mode
has been added, for use with a Cyrus-SASL module I am writing (based on vl's
work)

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:22:00 +0000 (23:22 +0000)]
(merge from 3.0)

Refactor our authentication and authentication testing code.

The next move will be to remove our password checking code from the SAM
authentication backend, and into a file where other parts of samba can use
it.

The ntlm_auth changes provide for better use of common code.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:20:59 +0000 (23:20 +0000)]
(merge from 3.0)

Add the alignment required before all 2-byte quantities in NDR.  Allows us
to correctly parse plaintext netlogon calls with odd-length passwords

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:19:49 +0000 (23:19 +0000)]
(merge from 3.0)

Shutting down the connection closes outstanding sessions, so we don't need
to do it twice...

Amdrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:18:06 +0000 (23:18 +0000)]
(merge from 3.0)

Check the return value of string_to_sid in a few more places.  (But
string_to_sid also needs to be less permissive on what it thinks are
valid sids...)

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:16:47 +0000 (23:16 +0000)]
(merge from 3.0)

Show the error message for failure to set the ldap password.
(For 'ldap password sync = yes')

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Mon, 5 Jan 2004 23:15:33 +0000 (23:15 +0000)]
(merge from 3.0)

Based on patch by Petri Asikainen <paca@sci.fi> fix bug #387 and #330.

This patch will change order how attributes are modified
from: add, delete
to:   delete, add

This is needed to update single valued attributes in Novell NDS and
should not harm anyone else.

20 years agoFix from James Flemer <jflemer@uvm.edu> to make HAVE_ATTR_LIST linked to
Jeremy Allison [Mon, 5 Jan 2004 21:01:06 +0000 (21:01 +0000)]
Fix from James Flemer <jflemer@uvm.edu> to make HAVE_ATTR_LIST linked to
HAVE_SYS_ATTRIBUTES_H to fix AIX compile.
Jeremy.

20 years agofix inverted check using krb5_kt_resolve() and HAVE_MEMORY_KEYTAB; bug 912
Gerald Carter [Mon, 5 Jan 2004 20:24:21 +0000 (20:24 +0000)]
fix inverted check using krb5_kt_resolve() and HAVE_MEMORY_KEYTAB; bug 912

20 years agoMerge commit to 3_0: add pdb_pgsql
Jelmer Vernooij [Mon, 5 Jan 2004 00:57:53 +0000 (00:57 +0000)]
Merge commit to 3_0: add pdb_pgsql

20 years agoCommit the translation of the realm to the netbios domain name in the kerberos
Volker Lendecke [Sun, 4 Jan 2004 11:59:11 +0000 (11:59 +0000)]
Commit the translation of the realm to the netbios domain name in the kerberos
session setup. After talking to jht and abartlet I made this unconditional, no
additional parameter.

Jerry: This is a change in behaviour, but I think it is necessary.

Volker

20 years agoAnd yet another const
Volker Lendecke [Sat, 3 Jan 2004 20:21:37 +0000 (20:21 +0000)]
And yet another const

Volker

20 years agoAfter talking with abartlet remove the fix for bug 707 again.
Volker Lendecke [Thu, 1 Jan 2004 21:11:33 +0000 (21:11 +0000)]
After talking with abartlet remove the fix for bug 707 again.

Volker

20 years agoFix for bug 707, getent group for huge ads groups (>1500 members)
Volker Lendecke [Thu, 1 Jan 2004 20:33:45 +0000 (20:33 +0000)]
Fix for bug 707, getent group for huge ads groups (>1500 members)
This introduces range retrieval of ADS attributes.

I've rewritten most of Günther's patch, partly to remove code duplication and
partly to get the retrieval of members in one rush, not interrupted by the
lookups for the DN.

Andrew, you told me that you would like to see a check whether the AD sequence
number is the same before and after the retrieval to achieve atomicity. This
would be trivial to add, but I'm not sure that we want this, as this adds two
roundtrips to every membership query. We can not know before the first query
whether we get additional range values, and at that point it's too late to ask
for the USN.

Tested with a group of 4000 members along with lots of small groups.

Volker

20 years agoMove to short lived TALLOC_CTX* for allocating printer
Gerald Carter [Tue, 30 Dec 2003 22:18:40 +0000 (22:18 +0000)]
Move to short lived TALLOC_CTX* for allocating printer
objects from the print handle cache.   Fixes bug that
caused smbd to consume large amounts of RAM when

(a) a printer handle was kept open over an extended
    period of time, and
(b) the client issued frequent requests that resulted
    in a call to get_a_printer()

20 years agoAnother little one: Make pdb_test.c at least compile, although its way out of
Volker Lendecke [Tue, 30 Dec 2003 21:12:57 +0000 (21:12 +0000)]
Another little one: Make pdb_test.c at least compile, although its way out of
date.

Volker

20 years agoThe AFS pts command always generates completely lower-case user names. As case
Volker Lendecke [Tue, 30 Dec 2003 16:01:24 +0000 (16:01 +0000)]
The AFS pts command always generates completely lower-case user names. As case
is not significant in windows user names we should not lose information by
lower-casing the name before handing it to AFS.

Volker

20 years agoFix Bug # 924
Volker Lendecke [Tue, 30 Dec 2003 15:20:07 +0000 (15:20 +0000)]
Fix Bug # 924

Volker

20 years agoPreliminary fix for our signing problem with failed NTLMSSP logins. This patch
Volker Lendecke [Sat, 27 Dec 2003 10:13:20 +0000 (10:13 +0000)]
Preliminary fix for our signing problem with failed NTLMSSP logins. This patch
solves the problem for me here, I can still successfully set up signing using
NTLMSSP against w2k3 and it does not show a signing error anymoe when the
password was wrong.

Jeremy, you might want to take a further look at it as this is not
particularly elegant.

Volker

20 years agoCollecting another little patch from gd@suse.de
Volker Lendecke [Fri, 26 Dec 2003 21:35:39 +0000 (21:35 +0000)]
Collecting another little patch from gd@suse.de

As broken as it might be, smbwrapper.so should be put into the
libdir and not bindir.

Volker

20 years agoCollecting some minor patches...
Volker Lendecke [Fri, 26 Dec 2003 19:39:50 +0000 (19:39 +0000)]
Collecting some minor patches...

This adds the ability to specify the new user password for 'net ads password'
on the command line. As this needs the admin password on the command line, the
information leak is minimally more.

Patch from gd@suse.de

Volker

20 years ago(merge from 3.0)
Andrew Bartlett [Thu, 25 Dec 2003 23:35:27 +0000 (23:35 +0000)]
(merge from 3.0)
ldap rebind sleep -> ldap replication sleep

While writing documentation for metze's patch, it became clear that this is a
better name.

Andrew Bartlett

20 years agoThis is metze's LDAP rebind sleep patch:
Volker Lendecke [Thu, 25 Dec 2003 22:45:15 +0000 (22:45 +0000)]
This is metze's LDAP rebind sleep patch:

When smb.conf tells us to write to a read-only LDAP replica and we are
redirected by the LDAP server, the replication might take some seconds,
especially over slow links. This patch delays the next read after a rebind for
'ldap rebind sleep' milliseconds.

Metze, thanks for your patience.

Volker

20 years agoFix our parsing of the LDAP url. We get around it as all decent systems seem
Volker Lendecke [Thu, 25 Dec 2003 22:31:30 +0000 (22:31 +0000)]
Fix our parsing of the LDAP url. We get around it as all decent systems seem
to have ldap_initialize.

Thanks to abartlet for the fix (and the bug in the first place ;-))

Volker

20 years agoabartlet pointed me at the fact that the order and flags in loadparm.c are
Volker Lendecke [Thu, 25 Dec 2003 10:10:49 +0000 (10:10 +0000)]
abartlet pointed me at the fact that the order and flags in loadparm.c are
actually used.... 'afs username map' should not show up in the swat basic
view. :-)

Maybe I should use swat from time to time....

Volker

20 years ago(merge from 3.0)
Andrew Bartlett [Thu, 25 Dec 2003 09:57:39 +0000 (09:57 +0000)]
(merge from 3.0)

Fix bug 916 - do not perform a + -> space substitution for squid URL encoded
strings, only form input in SWAT.

Andrew Bartlett

20 years ago(merge from 3.0)
Andrew Bartlett [Wed, 24 Dec 2003 10:02:57 +0000 (10:02 +0000)]
(merge from 3.0)

Thanks to Serassio Guido for noticing issues in our Squid NTLMSSP
implementation.  We were not resetting the NTLMSSP state for new
negotiate packets.

Andrew Bartlett

20 years agoFix for special files being hidden from admins by Dmitry Butskoj <buc@odusz.elektra.ru>
Jeremy Allison [Tue, 23 Dec 2003 07:33:38 +0000 (07:33 +0000)]
Fix for special files being hidden from admins by Dmitry Butskoj <buc@odusz.elektra.ru>
Jeremy.

20 years agocorrect typo in delete user script; bug 887
Gerald Carter [Mon, 22 Dec 2003 21:26:29 +0000 (21:26 +0000)]
correct typo in delete user script; bug 887

20 years agoadd well known rid for pre win2k compatible access group; bug 897
Gerald Carter [Mon, 22 Dec 2003 21:24:40 +0000 (21:24 +0000)]
add well known rid for pre win2k compatible access group; bug 897

20 years agoPatch from Jianliang Lu j.lu@tiesse.com to manage Power Users
Jeremy Allison [Mon, 22 Dec 2003 11:12:12 +0000 (11:12 +0000)]
Patch from Jianliang Lu j.lu@tiesse.com to manage Power Users
group.
Jeremy.

20 years ago* add a few useful debug lines
Gerald Carter [Fri, 19 Dec 2003 00:33:27 +0000 (00:33 +0000)]
* add a few useful debug lines
* fix bug involving Win9x clients.  Make sure we
  save the right case for the located username
  in fill_sam_account()

20 years agoAdd in comments explaining NTLMv2 selection. Use lm session key if that's
Jeremy Allison [Wed, 17 Dec 2003 21:57:29 +0000 (21:57 +0000)]
Add in comments explaining NTLMv2 selection. Use lm session key if that's
all there is.
Jeremy.

20 years agoTidyup debug message in ntlmssp code. Add brackets around dodgy if statement.
Jeremy Allison [Wed, 17 Dec 2003 20:11:35 +0000 (20:11 +0000)]
Tidyup debug message in ntlmssp code. Add brackets around dodgy if statement.
Jeremy

20 years agoMake sure we correctly generate the lm session key.
Gerald Carter [Wed, 17 Dec 2003 06:18:41 +0000 (06:18 +0000)]
Make sure we correctly generate the lm session key.
This fixes a problem joining a Samba domain from a
vanilla win2k client that doesn't set the
NTLMSSP_NEGOTIATE_NTLM2 flag.

Reported on samba ml as "decode_pw: incorrect password length"
when handling a samr_set_userinfo(23 or 24) RPC.

20 years agomake sure we delete the group mapping before calling the delete group script; patch...
Gerald Carter [Tue, 16 Dec 2003 18:36:05 +0000 (18:36 +0000)]
make sure we delete the group mapping before calling the delete group script; patch from Jianliang Lu <j.lu@tiesse.com>

20 years agoFix from ndb@theghet.to to allow an existing LDAP machine account to be
Jeremy Allison [Sat, 13 Dec 2003 01:43:52 +0000 (01:43 +0000)]
Fix from ndb@theghet.to to allow an existing LDAP machine account to be
re-used, rather than created from scratch.
Jeremy.

20 years agoFix for bug #815. Make plaintext unicode passwords work with NT4.x
Jeremy Allison [Fri, 12 Dec 2003 22:54:41 +0000 (22:54 +0000)]
Fix for bug #815. Make plaintext unicode passwords work with NT4.x
Jeremy.

20 years agoFix detection of elements in in-memory keytab code.
Jeremy Allison [Fri, 12 Dec 2003 20:15:47 +0000 (20:15 +0000)]
Fix detection of elements in in-memory keytab code.
Jeremy.

20 years agofix bug that prevent --mandir from overriding the defaults given in the --with-fhs...
Gerald Carter [Thu, 11 Dec 2003 22:31:00 +0000 (22:31 +0000)]
fix bug that prevent --mandir from overriding the defaults given in the --with-fhs macro

20 years agoCorrectly detect in-memory krb5 keytab support. Fix for bug #863 from
Jeremy Allison [Thu, 11 Dec 2003 20:54:55 +0000 (20:54 +0000)]
Correctly detect in-memory krb5 keytab support. Fix for bug #863 from
gschafer@zip.com.au (Greg Schafer).
Jeremy.

20 years agoPatch from James Peach <jpeach@sgi.com>. Remove the MAX_CONNECTIONS limit
Jeremy Allison [Thu, 11 Dec 2003 19:59:05 +0000 (19:59 +0000)]
Patch from James Peach <jpeach@sgi.com>. Remove the MAX_CONNECTIONS limit
by increasing bitmap size. Limited by "max connections" parameter.
Bug #716.
Jeremy.

20 years agofixed bad formal parameter type in get_static(); patch Andy Polyakov
Gerald Carter [Thu, 11 Dec 2003 15:35:44 +0000 (15:35 +0000)]
fixed bad formal parameter type in get_static(); patch Andy Polyakov

20 years agoFix uninitialized variable in passdb code. Reported by Andy Polyakov <appro@fy.chalme...
Alexander Bokovoy [Thu, 11 Dec 2003 10:31:20 +0000 (10:31 +0000)]
Fix uninitialized variable in passdb code. Reported by Andy Polyakov <appro@fy.chalmers.se>

20 years agoFix UNISTR2 length bug in LsaQueryInfo(3) that cause SID resolution to fail on local...
Gerald Carter [Wed, 10 Dec 2003 21:14:39 +0000 (21:14 +0000)]
Fix UNISTR2 length bug in LsaQueryInfo(3) that cause SID resolution to fail on local files on on domain members; bug 875

20 years agomore group lookup access fixes on the neverending bug 281
Gerald Carter [Wed, 10 Dec 2003 16:42:44 +0000 (16:42 +0000)]
more group lookup access fixes on the neverending bug 281

20 years agoFix #558 -- support ISO-8859-1 internally. Makes Solaris users a bit happier
Alexander Bokovoy [Wed, 10 Dec 2003 16:01:20 +0000 (16:01 +0000)]
Fix #558 -- support ISO-8859-1 internally. Makes Solaris users a bit happier

20 years agopatch from TAKEDA yasuma to bypass any missing language files
Gerald Carter [Wed, 10 Dec 2003 14:10:39 +0000 (14:10 +0000)]
patch from TAKEDA yasuma to bypass any missing language files

20 years agoIRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy Allison [Tue, 9 Dec 2003 22:32:55 +0000 (22:32 +0000)]
IRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy.

20 years agoworking on packaging; also fixed some path issues in configure.in & Makefile.in
Gerald Carter [Tue, 9 Dec 2003 21:31:38 +0000 (21:31 +0000)]
working on packaging; also fixed some path issues in configure.in & Makefile.in

20 years agoFinal part of fix for #445. Don't add user for machine accounts.
Jeremy Allison [Tue, 9 Dec 2003 18:34:26 +0000 (18:34 +0000)]
Final part of fix for #445. Don't add user for machine accounts.
Jeremy.

20 years agofix bug in get_peer_name() caused by --enable-developer and using the same src &...
Gerald Carter [Tue, 9 Dec 2003 18:20:48 +0000 (18:20 +0000)]
fix bug in get_peer_name() caused by --enable-developer and using the same src & dest strings to alpha_strcpy(); reported by Michael Young

20 years agoMake intent to return only one address clear.
Jeremy Allison [Tue, 9 Dec 2003 02:29:24 +0000 (02:29 +0000)]
Make intent to return only one address clear.
Jeremy.

20 years agoworking on bug 687; protect against null src strings in alloc_sub_basic()
Gerald Carter [Mon, 8 Dec 2003 17:42:26 +0000 (17:42 +0000)]
working on bug 687; protect against null src strings in alloc_sub_basic()

20 years agomake sure we use a real network address in case there are extra non-zero octets in...
Gerald Carter [Mon, 8 Dec 2003 17:42:21 +0000 (17:42 +0000)]
make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny

20 years agoMerge from 3.0:
Andrew Bartlett [Sun, 7 Dec 2003 11:06:40 +0000 (11:06 +0000)]
Merge from 3.0:

source/libsmb/ntlmssp.c:
Picked up by the build farm - despite all my efforts, security=server was
broken by my NTLM2 commit.  This should correctly cause the NTLM2 case
not to be negotiated when 'security=server' is in effect.

testsuide/build_farm/runlist:
Without 'non unix accounts' we can't test security=domain on the build farm.

source/rpc_server/srv_samr_nt.c:
Match Win2k and return 'invalid parameter' for creating of a new account with
account flags of 0.

Andrew Bartlett

20 years agoFix for bug #445 (missing unix user on kerberos auth doesn't call add user
Jeremy Allison [Sat, 6 Dec 2003 02:33:59 +0000 (02:33 +0000)]
Fix for bug #445 (missing unix user on kerberos auth doesn't call add user
script).
Jeremy.

20 years agofix %a variable for Windows 2003 -> Win2K3
Gerald Carter [Fri, 5 Dec 2003 21:52:17 +0000 (21:52 +0000)]
fix %a variable for Windows 2003 -> Win2K3

20 years agoJanitor for tridge...
Jeremy Allison [Fri, 5 Dec 2003 21:01:23 +0000 (21:01 +0000)]
Janitor for tridge...
Jeremy.

20 years agopackaging updates from Buchan
Gerald Carter [Fri, 5 Dec 2003 17:21:00 +0000 (17:21 +0000)]
packaging updates from Buchan

20 years agocreate libdir for installclientlib; patch from Bill Knox
Gerald Carter [Fri, 5 Dec 2003 15:27:58 +0000 (15:27 +0000)]
create libdir for installclientlib; patch from Bill Knox

20 years agofix process_incoming_data() to return the number of bytes handled this call whether...
Gerald Carter [Thu, 4 Dec 2003 20:22:19 +0000 (20:22 +0000)]
fix process_incoming_data() to return the number of bytes handled this call whether we have a complete pdu or not; fixes bug with multiple pdu request rpc's broken over SMBwriteX calls each

20 years agotypo in BASEDIR; patch from Darren Chew
Gerald Carter [Thu, 4 Dec 2003 16:39:11 +0000 (16:39 +0000)]
typo in BASEDIR; patch from Darren Chew

20 years agoreadding schema items that were accidentally deleted
Gerald Carter [Thu, 4 Dec 2003 05:02:25 +0000 (05:02 +0000)]
readding schema items that were accidentally deleted

20 years agosupport munged dial for ldapsam; patch from Aurélien Degrémont; bug 800
Gerald Carter [Thu, 4 Dec 2003 04:52:49 +0000 (04:52 +0000)]
support munged dial for ldapsam; patch from Aurélien Degrémont; bug 800

20 years agodon't crash on a NULL priviledge pointer; patch from Jianliang Lu
Gerald Carter [Thu, 4 Dec 2003 04:32:22 +0000 (04:32 +0000)]
don't crash on a NULL priviledge pointer; patch from Jianliang Lu

20 years ago* fix RemoveSidForeignDomain() ; bug 252
Gerald Carter [Thu, 4 Dec 2003 04:08:32 +0000 (04:08 +0000)]
* fix RemoveSidForeignDomain() ; bug 252
* don't fall back to unmapped UNIX group for
  get_local_group_from_sid()
* remove an extra become/unbecome_root() pair
  from group enumeration

20 years agoFix for "hash" (not hash2) type mangling. Noticed by "Forrest W. Christian" <fwc...
Jeremy Allison [Wed, 3 Dec 2003 23:16:24 +0000 (23:16 +0000)]
Fix for "hash" (not hash2) type mangling. Noticed by "Forrest W. Christian" <fwc@mt.net>
Jeremy.

20 years agoTwo trivial warnings
Volker Lendecke [Tue, 2 Dec 2003 11:41:42 +0000 (11:41 +0000)]
Two trivial warnings

Volker

20 years agoClient connect signing error messages should be level zero else
Jeremy Allison [Mon, 1 Dec 2003 22:55:41 +0000 (22:55 +0000)]
Client connect signing error messages should be level zero else
they're easy to miss.
Jeremy.

20 years agoGet a little paranoid about memfree use in convert_string_allocate..
Jeremy Allison [Mon, 1 Dec 2003 22:46:49 +0000 (22:46 +0000)]
Get a little paranoid about memfree use in convert_string_allocate..
Looking at crash bugs #809 and others.
Jeremy.

20 years agoanother strequal() == 0 fix
Gerald Carter [Mon, 1 Dec 2003 19:58:53 +0000 (19:58 +0000)]
another strequal() == 0 fix

20 years agofix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846
Gerald Carter [Mon, 1 Dec 2003 19:26:32 +0000 (19:26 +0000)]
fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846

20 years agoadd Replicator and RAS Servers to list of builtin SIDs we resolve; bug 608
Gerald Carter [Mon, 1 Dec 2003 18:38:08 +0000 (18:38 +0000)]
add Replicator and RAS Servers to list of builtin SIDs we resolve; bug 608

20 years agodon't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770
Gerald Carter [Mon, 1 Dec 2003 18:02:30 +0000 (18:02 +0000)]
don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770

20 years agoIn the brief 'net rpc group' listing, don't cut off group names at 21 chars.
Volker Lendecke [Mon, 1 Dec 2003 14:13:20 +0000 (14:13 +0000)]
In the brief 'net rpc group' listing, don't cut off group names at 21 chars.

Volker

20 years agoBeautify the net status help message a bit
Volker Lendecke [Mon, 1 Dec 2003 14:08:15 +0000 (14:08 +0000)]
Beautify the net status help message a bit

Volker

20 years agoI needed a decently parseable format of smbstatus. Looking at smbstatus code
Volker Lendecke [Mon, 1 Dec 2003 14:02:24 +0000 (14:02 +0000)]
I needed a decently parseable format of smbstatus. Looking at smbstatus code
tells me that this should not be expanded, so I implemented

net status [sessions|shares] [parseable]

Volker

20 years agoFix spurious error msg. when seq=0.
Jeremy Allison [Mon, 1 Dec 2003 06:59:56 +0000 (06:59 +0000)]
Fix spurious error msg. when seq=0.
Jeremy.

20 years agoEnsure the server can cope with multiple secondary trans
Jeremy Allison [Mon, 1 Dec 2003 06:53:21 +0000 (06:53 +0000)]
Ensure the server can cope with multiple secondary trans
requests when signing is turned on.
Jeremy.

20 years agoSubtract NT_STATUS from common flag, don't add it...
Jeremy Allison [Mon, 1 Dec 2003 06:19:14 +0000 (06:19 +0000)]
Subtract NT_STATUS from common flag, don't add it...
Jeremy.

20 years agoEnsure we use the same mid for the secondary trans requests, W2K3
Jeremy Allison [Mon, 1 Dec 2003 03:24:53 +0000 (03:24 +0000)]
Ensure we use the same mid for the secondary trans requests, W2K3
does this.
Jeremy.

20 years agoDon't automatically set nt status code flag unless client tells us it can
Jeremy Allison [Mon, 1 Dec 2003 02:25:53 +0000 (02:25 +0000)]
Don't automatically set nt status code flag unless client tells us it can
cope.
Jeremy.

20 years agoBetter fix for client signing bug. Ensure we don't malloc/free trans signing
Jeremy Allison [Mon, 1 Dec 2003 01:04:02 +0000 (01:04 +0000)]
Better fix for client signing bug. Ensure we don't malloc/free trans signing
state info each packet.
Jeremy.

20 years agoFix signing bug with secondary client trans requests. Turns out the last
Jeremy Allison [Sun, 30 Nov 2003 19:40:53 +0000 (19:40 +0000)]
Fix signing bug with secondary client trans requests. Turns out the last
packet is the one that matters for checking the signing replies. Need to
check the server code does this correctly too....
Bug #832 reported by Volker.
Jeremy.

20 years agoImplement 'net rpc group list [global|local|builtin]*' for a select listing of
Volker Lendecke [Fri, 28 Nov 2003 15:10:30 +0000 (15:10 +0000)]
Implement 'net rpc group list [global|local|builtin]*' for a select listing of
the respective user databases.

Volker

20 years agoFix for pdbedit error code returns (sorry, forgot who sent in the patch).
Jeremy Allison [Thu, 27 Nov 2003 18:34:40 +0000 (18:34 +0000)]
Fix for pdbedit error code returns (sorry, forgot who sent in the patch).
Jeremy.

20 years agoOnly ask for 512 names at a time.
Volker Lendecke [Thu, 27 Nov 2003 17:32:13 +0000 (17:32 +0000)]
Only ask for 512 names at a time.

Volker

20 years agouse samr_dispinfo(level == 1) for enumerating domain users so we can include the...
Gerald Carter [Thu, 27 Nov 2003 04:40:58 +0000 (04:40 +0000)]
use samr_dispinfo(level == 1) for enumerating domain users so we can include the full name in gecos field; bug 587

20 years agoPatch from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> to add
Jeremy Allison [Wed, 26 Nov 2003 20:58:51 +0000 (20:58 +0000)]
Patch from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> to add
MacOSX (Darwin) specific charset module code. Also had to add AC_CHECK_CPP
to configure.in (this took a *long* time to track down) to make autoconf
work correctly on Fedora Core 1.
Jeremy.

20 years agoImplement "net rpc group members": Get members of a domain group in
Volker Lendecke [Wed, 26 Nov 2003 10:09:59 +0000 (10:09 +0000)]
Implement "net rpc group members": Get members of a domain group in
human-readable format.

Volker

20 years agoGet rid of a const warning
Volker Lendecke [Wed, 26 Nov 2003 10:01:31 +0000 (10:01 +0000)]
Get rid of a const warning

Volker

20 years agoMerge from 3.0:
Andrew Bartlett [Wed, 26 Nov 2003 00:07:55 +0000 (00:07 +0000)]
Merge from 3.0:

 - NTLM2 fixes, don't force NTLM2
 - Don't use NTLM2 for RPC, it doesn't work yet
 - Add comments to winbindd_pam.c
 - Merge 64 bit fixes and better debug messages in winbindd.c

Andrew Bartlett

20 years agoPatch from Jim McDonough for bug #802. Retrieve the correct ACL group bits
Jeremy Allison [Tue, 25 Nov 2003 23:25:15 +0000 (23:25 +0000)]
Patch from Jim McDonough for bug #802. Retrieve the correct ACL group bits
if the file has an ACL.
Jeremy.

20 years agoallow users to delete jobs with cups printing backend
Gerald Carter [Tue, 25 Nov 2003 19:17:20 +0000 (19:17 +0000)]
allow users to delete jobs with cups printing backend
The changes the name of the job passed off to cups
from "Test Page" to "smbprn.00000033 Test Page" so that
we can get the smb jobid back from lpq.  Working on bug
770.