1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

13277 Commits

Author SHA1 Message Date
Jeremy Allison
86d65dc070 IRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy.
(This used to be commit 1ae1987a00)
2003-12-09 22:41:26 +00:00
Gerald Carter
f2c6cec339 working on packaging; also fixed some path issues in configure.in & Makefile.in
(This used to be commit 8f6cd36fa0)
2003-12-09 21:29:25 +00:00
Jeremy Allison
8d019a9682 Final part of fix for #445. Don't add user for machine accounts.
Jeremy.
(This used to be commit 3684cffbd2)
2003-12-09 18:34:29 +00:00
Gerald Carter
e25b7b8eed fix bug in get_peer_name() caused by --enable-developer and using the same src & dest strings to alpha_strcpy(); reported by Michael Young
(This used to be commit b7df6849c9)
2003-12-09 18:20:27 +00:00
Jeremy Allison
ee17580c85 Make intent to return only one address clear.
Jeremy.
(This used to be commit d3d0353bae)
2003-12-09 02:29:27 +00:00
Gerald Carter
f141ad1a96 working on bug 687; protect against null src strings in alloc_sub_basic()
(This used to be commit 6cf91bce40)
2003-12-08 17:40:44 +00:00
Gerald Carter
67db65abf1 make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny
(This used to be commit 0348e85177)
2003-12-08 17:40:15 +00:00
Tim Potter
80bbfbaf44 Fix comment.
(This used to be commit a999f7f23f)
2003-12-07 10:48:31 +00:00
Jeremy Allison
aad0b08cbb Fix for bug #445 (missing unix user on kerberos auth doesn't call add user
script).
Jeremy.
(This used to be commit 5d9f06bdae)
2003-12-06 02:34:02 +00:00
Gerald Carter
4b1e15a4f2 fix %a variable for Windows 2003 -> Win2K3
(This used to be commit 2f43a1c166)
2003-12-05 21:51:51 +00:00
Gerald Carter
26dab8d9dd create libdir for installclientlib; patch from Bill Knox
(This used to be commit b19472e108)
2003-12-05 15:23:21 +00:00
Andrew Tridgell
1d4978d722 fixed a problem with "net rpc vampire" mis-parsing the alias member
info reply

Thanks to a bug report by 'musb'
(This used to be commit 310f90f368)
2003-12-05 11:30:47 +00:00
Gerald Carter
b47a3a920a bumping version in preparation for 3.0.1rc1
(This used to be commit 91c95391c3)
2003-12-04 21:38:47 +00:00
Steve French
1f761ad395 Fix incorrect smb flags2 for connections to pre-NT servers (causes smbclient to
fail to OS2 for example)
(This used to be commit 54e2fcb8f4)
2003-12-04 21:26:14 +00:00
Gerald Carter
16194fbc5a 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
(This used to be commit ff06f3ca8e)
2003-12-04 20:20:59 +00:00
Gerald Carter
903017b1ee fix debug message
(This used to be commit 550b309a65)
2003-12-04 19:22:44 +00:00
Gerald Carter
5df2fd4175 support munged dial for ldapsam; patch from Aurlien Degrmont; bug 800
(This used to be commit 1c3c16abc9)
2003-12-04 04:52:00 +00:00
Gerald Carter
b754e4af39 don't crash on a NULL priviledge pointer; patch from Jianliang Lu
(This used to be commit 2742e813fe)
2003-12-04 04:31:29 +00:00
Andrew Bartlett
88dad93acb 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.

Andrew Bartlett
(This used to be commit 19bb4b582f)
2003-12-04 04:16:16 +00:00
Gerald Carter
3d929b1ce6 * 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
(This used to be commit da12bbdb0d)
2003-12-04 03:35:46 +00:00
Jeremy Allison
8a31a346ef Fix for "hash" (not hash2) type mangling. Noticed by "Forrest W. Christian" <fwc@mt.net>
Jeremy.
(This used to be commit 3a8fe3b2ef)
2003-12-03 23:16:27 +00:00
Andrew Bartlett
89ebcb185d Match Win2k and return 'invalid parameter' for creating of a new account with
account flags of 0.

Andrew Bartlett
(This used to be commit 601120f335)
2003-12-02 12:48:15 +00:00
Volker Lendecke
0064a113f2 Two trivial warnings
Volker
(This used to be commit a13e088493)
2003-12-02 11:36:02 +00:00
Jeremy Allison
026e476258 Client connect signing error messages should be level zero else
they're easy to miss.
Jeremy.
(This used to be commit 7fa89b0937)
2003-12-01 22:55:43 +00:00
Jeremy Allison
c4167baca1 Get a little paranoid about memfree use in convert_string_allocate..
Looking at crash bugs #809 and others.
Jeremy.
(This used to be commit cd2075580b)
2003-12-01 22:46:46 +00:00
Gerald Carter
70e2f0944a another strequal() == 0 fix
(This used to be commit 464b410734)
2003-12-01 19:59:25 +00:00
Gerald Carter
951e1aa851 fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846
(This used to be commit c816b44a9c)
2003-12-01 19:25:41 +00:00
Gerald Carter
716484265d add Replicator and RAS Servers to list of builtin SIDs we resolve; bug 608
(This used to be commit 4bc58129e0)
2003-12-01 18:37:47 +00:00
Gerald Carter
038784aa80 don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770
(This used to be commit 3a55788dca)
2003-12-01 18:02:05 +00:00
Volker Lendecke
748b268a4f In the brief 'net rpc group' listing, don't cut off group names at 21 chars.
Volker
(This used to be commit 5d0b8280f6)
2003-12-01 14:12:26 +00:00
Volker Lendecke
d9bf130c51 Beautify the net status help message a bit
Volker
(This used to be commit e9391e206a)
2003-12-01 14:07:22 +00:00
Volker Lendecke
000b39a682 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
(This used to be commit 63d877c6b4)
2003-12-01 13:58:43 +00:00
Jeremy Allison
f7dfa789c1 Fix spurious error msg. when seq=0.
Jeremy
(This used to be commit 4912ad8f18)
2003-12-01 06:59:54 +00:00
Jeremy Allison
570f2b73b4 Ensure the server can cope with multiple secondary trans
requests when signing is turned on.
Jeremy.
(This used to be commit 206464a748)
2003-12-01 06:53:10 +00:00
Jeremy Allison
27891bdef1 Subtract NT_STATUS from common flag, don't add it...
Jeremy.
(This used to be commit 4e73faa7b4)
2003-12-01 06:19:17 +00:00
Jeremy Allison
b4fa65d0ad Ensure we use the same mid for the secondary trans requests, W2K3
does this.
Jeremy.
(This used to be commit 8adf0cd27a)
2003-12-01 03:24:50 +00:00
Jeremy Allison
6bb8f54e01 Don't automatically set nt status code flag unless client tells us it can
cope.
Jeremy.
(This used to be commit 0d82ac57a5)
2003-12-01 02:25:56 +00:00
Jeremy Allison
12d3246a6c Better fix for client signing bug. Ensure we don't malloc/free trans signing
state info each packet.
Jeremy.
(This used to be commit 818cf32d63)
2003-12-01 01:04:04 +00:00
Jeremy Allison
2ad1159990 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.
(This used to be commit 6750dc33b4)
2003-11-30 19:40:57 +00:00
Volker Lendecke
3dda7cf2ca Implement 'net rpc group list [global|local|builtin]*' for a select listing of
the respective user databases.

Volker
(This used to be commit 39e4ee0c5b)
2003-11-28 15:10:00 +00:00
Jeremy Allison
521104359e Fix for pdbedit error code returns (sorry, forgot who sent in the patch).
Jeremy.
(This used to be commit 685097bc50)
2003-11-27 18:34:42 +00:00
Volker Lendecke
dd51a9be94 Only ask for 512 names at a time.
Volker
(This used to be commit d5775b7106)
2003-11-27 17:31:18 +00:00
Tim Potter
20d03cc862 Correct freebsd 5.1 support for winbind contributed by Aaron Collins.
Let the build farm chew on it for a bit.
(This used to be commit 41e4b036df)
2003-11-27 05:11:14 +00:00
Gerald Carter
2c482d6111 use samr_dispinfo(level == 1) for enumerating domain users so we can include the full name in gecos field; bug 587
(This used to be commit 329065d7cd)
2003-11-27 04:39:53 +00:00
Jeremy Allison
44d9ea4840 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.
(This used to be commit c51d974b18)
2003-11-26 20:58:53 +00:00
cvs2svn Import User
130b38a372 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 9ccf8c530d) 2003-11-26 20:58:52 +00:00
Jeremy Allison
b1b4d67f65 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.
(This used to be commit a571194342)
2003-11-26 20:58:51 +00:00
Richard Sharpe
e83fc388b3 Clean up a comment noticed by Jonathan Shao@Panasas.com and remove an
obsolete comment by Luke Leighton.
(This used to be commit 316f83add7)
2003-11-26 19:15:22 +00:00
John Terpstra
ee8fc93414 Fixing barfed idmap entries and adding not on use of FLAG_HIDE.
(This used to be commit 25aa5df5c7)
2003-11-26 18:43:26 +00:00
Volker Lendecke
63d44a5c2d Implement "net rpc group members": Get members of a domain group in
human-readable format.

Volker
(This used to be commit e5770a9433)
2003-11-26 10:09:59 +00:00
Volker Lendecke
5efc777a0f Implement "net rpc group members": Get members of a domain group in
human-readable format.

Volker
(This used to be commit 4e3a2eb8e0)
2003-11-26 10:07:07 +00:00
Volker Lendecke
449b2e4267 Get rid of a const warning
Volker
(This used to be commit ab1096d58e)
2003-11-26 10:01:31 +00:00
Volker Lendecke
203710ea6d Get rid of a const warning
Volker
(This used to be commit 94860687c5)
2003-11-26 09:58:41 +00:00
Andrew Bartlett
52c1e60e68 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
(This used to be commit ba94e4a1ab)
2003-11-26 00:07:55 +00:00
Jeremy Allison
09a7088156 Patch from Jim McDonough for bug #802. Retrieve the correct ACL group bits
if the file has an ACL.
Jeremy.
(This used to be commit 7bf5ed30ce)
2003-11-25 23:25:42 +00:00
Jeremy Allison
e88d4705c1 Patch from Jim McDonough for bug #802. Retrieve the correct ACL group bits
if the file has an ACL.
Jeremy.
(This used to be commit a51d9e947e)
2003-11-25 23:25:15 +00:00
Andrew Bartlett
3f0d0002ae Add a comment, and a useful debug message.
(This used to be commit df14b0af31)
2003-11-25 23:24:14 +00:00
Jelmer Vernooij
8beace344c Fix build of winbindd with static pdb modules
(This used to be commit 92a138f027)
2003-11-25 19:41:47 +00:00
Gerald Carter
82ef4774d2 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.
(This used to be commit 3a84daf24f)
2003-11-25 19:17:20 +00:00
Gerald Carter
055750f090 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.
(This used to be commit 5979f4d645)
2003-11-25 19:16:35 +00:00
Jeremy Allison
6ce882ef29 If signing starts successfully, don't just turn it off automatically if
it fails later. Only turn it off automatically if it fails at the start.
Jeremy.
(This used to be commit 4a145531c2)
2003-11-25 18:15:52 +00:00
Jeremy Allison
c8d0bce19f If signing starts successfully, don't just turn it off automatically if
it fails later. Only turn it off automatically if it fails at the start.
Jeremy.
(This used to be commit 2a00d538da)
2003-11-25 18:15:49 +00:00
Andrew Bartlett
1b6e6c98ba Do not add NTLM2 to the NTLMSSP flags unconditionally - allow the
defaults specified by the caller to prevail.

Don't use NTLM2 for RPC pipes, until we know how it works in signing or sealing.

Call ntlmssp_sign_init() unconditionally in the client - we setup the
session key, why not setup the rest of the data.

Andrew Bartlett
(This used to be commit 48123f7e42)
2003-11-25 11:25:38 +00:00
Jeremy Allison
90d4b84636 Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
(This used to be commit 6543bca0cb)
2003-11-25 02:04:10 +00:00
Jeremy Allison
b4feed1e50 Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
(This used to be commit 0f2a50316d)
2003-11-25 02:04:03 +00:00
Jeremy Allison
efdd1ea572 When server signing is set to "auto", if the client doesn't sign just
ignore it. Only fail if signing is set to "required".
Jeremy.
(This used to be commit 8916ddfc39)
2003-11-25 00:32:51 +00:00
Jeremy Allison
b7937e569c When server signing is set to "auto", if the client doesn't sign just
ignore it. Only fail if signing is set to "required".
Jeremy.
(This used to be commit ab5db8873e)
2003-11-25 00:32:48 +00:00
Gerald Carter
f7bf71a34c strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
(This used to be commit 84f0e97e58)
2003-11-24 20:22:41 +00:00
Gerald Carter
4e61fcbef1 strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
(This used to be commit 5e062f72ba)
2003-11-24 20:22:12 +00:00
Jeremy Allison
73034f9116 Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
(This used to be commit 16097f2072)
2003-11-24 20:18:47 +00:00
Jeremy Allison
9ce8270a86 Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
(This used to be commit 4d49fb806d)
2003-11-24 20:18:44 +00:00
Gerald Carter
3500dfdcdc patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS
(This used to be commit eae48cda0f)
2003-11-24 18:38:15 +00:00
Gerald Carter
c26aa9fd2d patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS
(This used to be commit 71333299a6)
2003-11-24 18:37:19 +00:00
Gerald Carter
f5ee9c7b02 more access fixes for group enumeration in LDAP; bug 281
(This used to be commit c4ce92e806)
2003-11-24 17:33:15 +00:00
Gerald Carter
c39f5fea4a more access fixes for group enumeration in LDAP; bug 281
(This used to be commit 68283407e0)
2003-11-24 17:31:38 +00:00
Andrew Bartlett
8ade0cf1b6 (Merge from 3.0)
Patch by emil@disksites.com <Emil Rasamat> to ensure we always always
free() each auth method. (We had relied on the use of talloc() only,
despite providing the free() callback)

Andrew Bartlett
(This used to be commit 58c4963a83)
2003-11-23 00:23:26 +00:00
Andrew Bartlett
13a6b9833e Merge from 3.0:
Add support for variable-length session keys in our client code.

This means that we now support 'net rpc join' with KRB5 (des based)
logins.  Now, you need to hack 'net' to do that, but the principal is
important...

When we add kerberos to 'net rpc', it should be possible to still do
user management and the like over RPC.

-

Add server-side support for variable-length session keys (as used by
DES based krb5 logins).

Andrew Bartlett
(This used to be commit 1287cf5f92)
2003-11-23 00:22:17 +00:00
Andrew Bartlett
6268505496 Patch by emil@disksites.com <Emil Rasamat> to ensure we always always
free() each auth method. (We had relied on the use of talloc() only, despite providing the free() callback)

Andrew Bartlett
(This used to be commit 5872c0e26e)
2003-11-23 00:16:54 +00:00
Andrew Bartlett
6b81cc2e0b Add server-side support for variable-length session keys (as used by
DES based krb5 logins).

Andrew Bartlett
(This used to be commit 240b0d178e)
2003-11-23 00:04:29 +00:00
Andrew Bartlett
78404434d0 Add support for variable-length session keys in our client code.
This means that we now support 'net rpc join' with KRB5 (des based)
logins.  Now, you need to hack 'net' to do that, but the principal is
important...

When we add kerberos to 'net rpc', it should be possible to still do
user management and the like over RPC.

(server-side support to follow shortly)

Andrew Bartlett
(This used to be commit 9ecf9408d9)
2003-11-22 23:38:41 +00:00
Andrew Bartlett
354c0fbc91 (merge from 3.0)
Changes all over the shop, but all towards:
 - NTLM2 support in the server
 - KEY_EXCH support in the server
 - variable length session keys.

In detail:

 - NTLM2 is an extension of NTLMv1, that is compatible with existing
domain controllers (unlike NTLMv2, which requires a DC upgrade).

 * This is known as 'NTLMv2 session security' *

(This is not yet implemented on the RPC pipes however, so there may
well still be issues for PDC setups, particuarly around password
changes.  We do not fully understand the sign/seal implications of
NTLM2 on RPC pipes.)

This requires modifications to our authentication subsystem, as we
must handle the 'challege' input into the challenge-response algorithm
being changed.  This also needs to be turned off for
'security=server', which does not support this.

- KEY_EXCH is another 'security' mechanism, whereby the session key
actually used by the server is sent by the client, rather than being
the shared-secret directly or indirectly.

- As both these methods change the session key, the auth subsystem
needed to be changed, to 'override' session keys provided by the
backend.

- There has also been a major overhaul of the NTLMSSP subsystem, to
merge the 'client' and 'server' functions, so they both operate on a
single structure.  This should help the SPNEGO implementation.

- The 'names blob' in NTLMSSP is always in unicode - never in ascii.
Don't make an ascii version ever.

- The other big change is to allow variable length session keys.  We
have always assumed that session keys are 16 bytes long - and padded
to this length if shorter.  However, Kerberos session keys are 8 bytes
long, when the krb5 login uses DES.

 * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. *

- Add better DEBUG() messages to ntlm_auth, warning administrators of
misconfigurations that prevent access to the privileged pipe.  This
should help reduce some of the 'it just doesn't work' issues.

- Fix data_blob_talloc() to behave the same way data_blob() does when
passed a NULL data pointer.  (just allocate)


REMEMBER to make clean after this commit - I have changed plenty of
data structures...

Andrew Bartlett
(This used to be commit 57a895aaab)
2003-11-22 13:29:02 +00:00
Andrew Bartlett
fcbfc7ad06 Changes all over the shop, but all towards:
- NTLM2 support in the server
 - KEY_EXCH support in the server
 - variable length session keys.

In detail:

 - NTLM2 is an extension of NTLMv1, that is compatible with existing
domain controllers (unlike NTLMv2, which requires a DC upgrade).

 * This is known as 'NTLMv2 session security' *

(This is not yet implemented on the RPC pipes however, so there may
well still be issues for PDC setups, particuarly around password
changes.  We do not fully understand the sign/seal implications of
NTLM2 on RPC pipes.)

This requires modifications to our authentication subsystem, as we
must handle the 'challege' input into the challenge-response algorithm
being changed.  This also needs to be turned off for
'security=server', which does not support this.

- KEY_EXCH is another 'security' mechanism, whereby the session key
actually used by the server is sent by the client, rather than being
the shared-secret directly or indirectly.

- As both these methods change the session key, the auth subsystem
needed to be changed, to 'override' session keys provided by the
backend.

- There has also been a major overhaul of the NTLMSSP subsystem, to merge the 'client' and 'server' functions, so they both operate on a single structure.  This should help the SPNEGO implementation.

- The 'names blob' in NTLMSSP is always in unicode - never in ascii.
Don't make an ascii version ever.

- The other big change is to allow variable length session keys.  We
have always assumed that session keys are 16 bytes long - and padded
to this length if shorter.  However, Kerberos session keys are 8 bytes
long, when the krb5 login uses DES.

 * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. *

- Add better DEBUG() messages to ntlm_auth, warning administrators of
misconfigurations that prevent access to the privileged pipe.  This
should help reduce some of the 'it just doesn't work' issues.

- Fix data_blob_talloc() to behave the same way data_blob() does when
passed a NULL data pointer.  (just allocate)


REMEMBER to make clean after this commit - I have changed plenty of data structures...
(This used to be commit f3bbc87b0d)
2003-11-22 13:19:38 +00:00
Gerald Carter
a2b82b408b debug and swat fixes from 3.0
(This used to be commit 52c1973f39)
2003-11-22 06:17:46 +00:00
Gerald Carter
7d9fb45339 include WWW-Authenticate field in 401 response for bad auth attempt; bug 629
(This used to be commit 879d0f15ea)
2003-11-22 06:16:01 +00:00
Gerald Carter
4f65a3bd03 adding a useful debug
(This used to be commit e374ce779e)
2003-11-22 06:15:28 +00:00
Gerald Carter
177ff4d64c fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398
(This used to be commit cb12d519cc)
2003-11-22 04:49:32 +00:00
Gerald Carter
8a53eed206 fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398
(This used to be commit 04e37283f2)
2003-11-22 04:47:34 +00:00
Gerald Carter
3c101594dd Ensure that items in a list of strings containing whitespace
are written out surrounded by single quotes.  This means that
both double and single quotes are now used to surround
strings in smb.conf.  This is a slight change from the previous
behavior but needed or else things like

    printer admin = +ntadmin, 'VALE\Domain, Admin'

get written to smb.conf by SWAT.
(This used to be commit 59e9d6e301)
2003-11-22 04:35:36 +00:00
Gerald Carter
11f4893145 Ensure that items in a list of strings containing whitespace
are written out surrounded by single quotes.  This means that
both double and single quotes are now used to surround
strings in smb.conf.  This is a slight change from the previous
behavior but needed or else things like

    printer admin = +ntadmin, 'VALE\Domain, Admin'

get written to smb.conf by SWAT.
(This used to be commit 5bf91c79d6)
2003-11-22 04:33:36 +00:00
Jeremy Allison
d66def408e Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
(This used to be commit 598d9d3e5f)
2003-11-21 23:01:37 +00:00
Jeremy Allison
1a125f5e40 Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
(This used to be commit f68c2ff0f3)
2003-11-21 23:01:34 +00:00
Jeremy Allison
bf0c18d418 Fix Jerry's no-proto bug :-).
Jeremy.
(This used to be commit 2b39e3f12a)
2003-11-21 19:20:51 +00:00
Jeremy Allison
bdea2e8a47 Fix Jerry's no-proto bug :-).
Jeremy.
(This used to be commit 48153f7a07)
2003-11-21 19:20:07 +00:00
Gerald Carter
579cafe744 make sure we don't append the ldap suffix when writing out the ldap XXX suffix values in SWAT; based on tpot's original patch; bug 328
(This used to be commit b1d5173b16)
2003-11-21 19:12:33 +00:00
Gerald Carter
478bb592a3 make sure we don't append the ldap suffix when writing out the ldap XXX suffix values in SWAT; based on tpot's original patch; bug 328
(This used to be commit 12a06dd980)
2003-11-21 19:11:48 +00:00
Rafal Szczesniak
382e96a614 Typo fix.
(This used to be commit 5054a1731e)
2003-11-20 23:56:42 +00:00
Rafal Szczesniak
ad88390a40 Typo fix.
(This used to be commit d1394f02cb)
2003-11-20 23:54:13 +00:00
Rafal Szczesniak
2a22bd3038 Added useful information to debug lines.
Patch by metze.


rafal
(This used to be commit 91e1be66b1)
2003-11-19 23:14:21 +00:00
Jeremy Allison
8614cc504e Look at error before using it in debug statement.
Jeremy.
(This used to be commit 69550332f3)
2003-11-19 22:57:56 +00:00
Jeremy Allison
f5e68bcfa1 Look at error before using it in debug statement.
Jeremy.
(This used to be commit 42114b75f2)
2003-11-19 22:57:53 +00:00
Rafal Szczesniak
a63010bae7 Added useful information to debug lines.
Patch by metze.


rafal
(This used to be commit 2eef3c7bc1)
2003-11-19 22:56:02 +00:00
Gerald Carter
885140bcb7 changing versionb to pre4
(This used to be commit 8c46576f64)
2003-11-19 18:33:19 +00:00
Andrew Tridgell
53dfaac5fb as discussed on irc, this is a small patch that allows a few more
winbind functions to be accessed via NSS. This provides a much cleaner
way for applications that need (for example) to provide name->sid
mappings to do this via NSS rather than having to know the winbindd
pipe protocol (as this might change).

This patch also adds a varient of the winbindd_getgroups() call called
winbindd_getusersids() that provides direct SID->SIDs listing of a
users supplementary groups. This is enough to allow non-Samba
applications to do ACL checking.

A test program for the new functionality will be committed shortly.

I also added the 'wbinfo --user-sids' option to expose the new
function in wbinfo.
(This used to be commit 702b35da0a)
2003-11-19 08:11:14 +00:00
Jeremy Allison
2d41ca7198 Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
(This used to be commit 06c9e91630)
2003-11-19 02:19:34 +00:00
Jeremy Allison
1e6f7172dd Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
(This used to be commit 0984b35fbf)
2003-11-19 02:19:33 +00:00
Jeremy Allison
3848849b02 Correct fix for '$' termination test.
Jeremy.
(This used to be commit b93e44e01e)
2003-11-19 00:22:47 +00:00
Jeremy Allison
5139e4a1a9 Correct fix for checking of '$' name termination.
Jeremy.
(This used to be commit ec23396452)
2003-11-19 00:18:45 +00:00
Rafal Szczesniak
66603d58e0 Fix to correct checking of '$' name termination.
Patch by metze.


rafal
(This used to be commit 7191186fc6)
2003-11-18 20:06:10 +00:00
Rafal Szczesniak
8f78f1bed2 Useful debug message. Patch by metze.
rafal
(This used to be commit 5f02adbd26)
2003-11-18 19:39:51 +00:00
Rafal Szczesniak
8e76781ff2 Useful debug message. Patch by metze.
rafal
(This used to be commit 8b06364b53)
2003-11-18 19:15:29 +00:00
Jeremy Allison
1276bbf4c9 Remove unneeded second open for filename ending in '.' now we know it's
a mangled name. Added const. Fix inspired by Andrew Bartlett ideas.
Jeremy.
(This used to be commit 8de1d4ebf7)
2003-11-18 02:06:46 +00:00
Jeremy Allison
013a051103 Remove unneeded second open for filename ending in '.' now we know it's
a mangled name. Added const. Fix inspired by Andrew Bartlett ideas.
Jeremy.
(This used to be commit 87eb336d65)
2003-11-18 02:06:41 +00:00
Jeremy Allison
7b39861342 Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy.
(This used to be commit fc2af591f5)
2003-11-18 01:47:27 +00:00
Jeremy Allison
5e9265c997 Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy.
(This used to be commit 9b50fd8cfc)
2003-11-18 01:47:15 +00:00
Jeremy Allison
e0fd9d28e9 Fix from Andrew Bartlett to fix up the munged-dial problem.
Jeremy.
(This used to be commit 703b1b76e2)
2003-11-17 22:07:47 +00:00
Jeremy Allison
c86a6b04c8 Fix from Andrew Bartlett to fix up the munged-dial problem.
Jeremy.
(This used to be commit 5df3d16c92)
2003-11-17 22:07:23 +00:00
Volker Lendecke
bfbc348604 From 3_0:
This fixes a bug when establishing trust against a german W2k3 AD server. In
the bind response to WKSSVC it does not send \PIPE\ntsvcs as NT4 (did not
check w2k) but \PIPE\wkssvc. I'm not sure whether we should make this check at
all, so making it a bit more liberal should hopefully not really hurt.

Volker
(This used to be commit dbd17dd036)
2003-11-17 18:01:28 +00:00
Volker Lendecke
5faae2df8a This fixes a bug when establishing trust against a german W2k3 AD server. In
the bind response to WKSSVC it does not send \PIPE\ntsvcs as NT4 (did not
check w2k) but \PIPE\wkssvc. I'm not sure whether we should make this check at
all, so making it a bit more liberal should hopefully not really hurt.

Volker
(This used to be commit 029dcb351b)
2003-11-17 18:00:43 +00:00
Gerald Carter
8b9622f50d * make sure we only enumerate group mapping entries
(not /etc/group) even when doing local aliases

* remove "hide local users" parameter; we have this
  behavior built into 3.0
(This used to be commit 3b75e862df)
2003-11-17 16:11:16 +00:00
Gerald Carter
4097f5ec8d * make sure we only enumerate group mapping entries
(not /etc/group) even when doing local aliases

* remove "hide local users" parameter; we have this
  behavior built into 3.0
(This used to be commit a7685a0697)
2003-11-17 16:06:10 +00:00
Simo Sorce
fca92574af do not build config_ldap by default
(forget to remove the module from the default list after testing :-)
(This used to be commit aae13b2e63)
2003-11-16 09:11:38 +00:00
Simo Sorce
e762e32389 Split smbldap in a core file and a utility file
Add module support for configuration loading

Add a first implementation of config_ldap module to put samba configuration
on ldap

It worked on my test machine, please try it out and send bugfixes :-)

have fun,
Simo.

INSTRUCTIONS:


Just add something like  this to your smb.conf file:
        config backend = config_ldap:ldap://localhost
        config_ldap:basedn = dc=samba,dc=org

the config tree must follow this scheme:
   ou=foo, dc=samba, dc=org <- global section
   |- sambaOptionName=log level, ou=foo, ...  <- options
   |- ...
   |- sambaShareName=testlc, ou=foo, ...  == [testlc]
      |- sambaOptionName=path, sambaShareName=testlc, ou=foo, ... <- option


here is a sample ldif:
# foo, samba, org
dn: ou=foo, dc=samba, dc=org
objectClass: organizationalUnit
objectClass: sambaConfig
ou: foo
description: Test Foo

# log level, foo, samba, org
dn: sambaOptionName=log level, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: log level
sambaIntegerOption: 10
description: log level 10 is suitable for good debugging

# testlc, foo, samba, org
dn: sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaShare
sambaShareName: testlc
description: share to test ldap config module actually works

# path, testlc, foo, samba, org
dn: sambaOptionName=path, sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: path
sambaStringOption: /tmp
description: Path for share testlc

# read only, testlc, foo, samba, org
dn: sambaOptionName=read only, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: read only
sambaBoolOption: TRUE
description: Share testlc is read only

# guest ok, testlc, foo, samba, org
dn: sambaOptionName=guest ok, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: guest ok
sambaBoolOption: TRUE
description: Guest users are allowed to connect to testlc share
(This used to be commit 207968eafc)
2003-11-15 00:47:29 +00:00
Gerald Carter
7301471a6a fix more memory leaks in the LDAP backend code; patches from metze
(This used to be commit 89a8c607af)
2003-11-14 03:36:27 +00:00
Gerald Carter
36558f8f2b fix more memory leaks in the LDAP backend code; patches from metze
(This used to be commit e079c8842a)
2003-11-14 03:28:03 +00:00
Gerald Carter
ac20c8cfb0 * Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
(This used to be commit d7026f6d17)
2003-11-13 20:16:28 +00:00
Gerald Carter
281e293331 * Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
(This used to be commit fd98af75d6)
2003-11-13 20:15:17 +00:00
Richard Sharpe
5fd6b5bc61 More casty-foo ...
(This used to be commit 00d5136ea0)
2003-11-13 17:35:00 +00:00
Richard Sharpe
0b5019ffc9 Squelch some warnings with more casty-foo.
(This used to be commit d165a49d86)
2003-11-13 17:30:25 +00:00
Richard Sharpe
e6994778ec Fix a couple of warnings with casts.
(This used to be commit 58d7a51c57)
2003-11-13 17:27:21 +00:00
Richard Sharpe
618d7dd0c7 Keep configure.in in sync with SAMBA-3.0.0
(This used to be commit 664cc4f46c)
2003-11-13 17:04:59 +00:00
Gerald Carter
bd4e882b0b show locked files for -u <user>; bug 590
(This used to be commit 3290582cb0)
2003-11-12 22:37:09 +00:00
Gerald Carter
c3c1e248ad show locked files for -u <user>; bug 590
(This used to be commit d72d77c427)
2003-11-12 22:35:50 +00:00
Rafal Szczesniak
a40625bc9d > Omit html documentation tree because it has been moved to the separate
> module. Install though, in case one recreates the tree as it was before.
>
>
> rafal

Same as in SAMBA_3_0 source tree.


rafal
(This used to be commit af972c7615)
2003-11-12 21:47:25 +00:00
Rafal Szczesniak
daea4804c3 Omit html documentation tree because it has been moved to the separate
module. Install though, in case one recreates the tree as it was before.


rafal
(This used to be commit d6857d191c)
2003-11-12 13:02:25 +00:00
Andrew Tridgell
e1c468477c a small include file rearrangement that doesn't affect normal
compilation, but that allows Samba3 to take advantage of pre-compiled
headers in gcc if available.
(This used to be commit b3e024ce1d)
2003-11-12 01:51:10 +00:00
Andrew Tridgell
009c143efd added support for "make pch" to build a precompiled header. Note that
this is not called by default and I don't think it should be - I think
the programmer should specifically ask for pch generation when they
want it.
(This used to be commit ef01aedfb4)
2003-11-12 01:01:47 +00:00
Gerald Carter
0f98e8ab83 fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit aef7f54355)
2003-11-11 19:22:44 +00:00
Gerald Carter
b64c6355b0 fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit ccd5665a65)
2003-11-11 19:22:00 +00:00
Jeremy Allison
33e6af5b3d Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit e61324cc6a)
2003-11-10 19:33:42 +00:00
Jeremy Allison
912289bd48 Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit a646cb60a2)
2003-11-10 19:33:40 +00:00
Richard Sharpe
970c1c73db Fix a problem with configure on *BSD systems. Make sure we add -liconv etc
to LDFLAGS. One of the problems with configure/autoconf is that there seems
to be no separation of LDLFAGS etc in configure from the LDFLAGS it is
building for the Makefile.
(This used to be commit 63d7698208)
2003-11-10 05:34:51 +00:00
Volker Lendecke
649f7d749d From 3_0:
Skip over the winbind separator when looking up a user.

Volker
(This used to be commit efe36a44d3)
2003-11-09 17:24:16 +00:00
Volker Lendecke
39ccc0f515 Skip over the winbind separator when looking up a user.
Volker
(This used to be commit 6b457d0c5c)
2003-11-09 17:23:57 +00:00
Andrew Bartlett
30d0680106 Merge from 3.0:
source/passdb/pdb_get_set.c:
I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.

Let's keep samba simple, and just remove it.


source/rpc_server/srv_netlog_nt.c:
Remove compleatly wrong comments.  (There were correct, 2 years ago...)


source/intl/lang_tdb.c:
Add newline to debug message


Andrew Bartlett
(This used to be commit 2a8dbe0369)
2003-11-09 09:30:21 +00:00
Gerald Carter
f9230c937b * only install swat html files once
* revert the change that prevent the guest
  account from being added to a passdb backend
  since it broke the build farm.
* apply patch from Alex Deiter to fix the
  "smbldap_open: cannot access when not root
  error" messages when looking up group
  information (bug 281)
(This used to be commit 20bd309239)
2003-11-07 23:04:52 +00:00
Gerald Carter
6ebde91c44 * only install swat html files once
* revert the change that prevent the guest
  account from being added to a passdb backend
  since it broke the build farm.
* apply patch from Alex Deiter to fix the
  "smbldap_open: cannot access when not root
  error" messages when looking up group
  information (bug 281)
(This used to be commit 9b8bf6a950)
2003-11-07 23:04:06 +00:00
Jeremy Allison
a3aa2c9ed4 Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>
with memory leak fixes by me.
Jeremy.
(This used to be commit daceed3738)
2003-11-07 18:32:29 +00:00
Jeremy Allison
5cfe36d09d Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>with memory leak fixes by me.
Jeremy.
(This used to be commit e591854eda)
2003-11-07 18:32:23 +00:00
Gerald Carter
e9bd28d0a7 fix for bug 680 (heads up). This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.

  * allow winbindd to match local accounts to domain SID
    when 'winbind trusted domains only = yes'

  * remove code in idmap_ldap that searches the user
    suffix and group suffix.  It's not needed and
    provides inconsistent functionality from the tdb backend.

This has been tested.  I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
(This used to be commit cac4723e20)
2003-11-07 14:41:08 +00:00
Gerald Carter
84ca7ad00c fix for bug 680 (heads up). This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.

  * allow winbindd to match local accounts to domain SID
    when 'winbind trusted domains only = yes'

  * remove code in idmap_ldap that searches the user
    suffix and group suffix.  It's not needed and
    provides inconsistent functionality from the tdb backend.

This has been tested.  I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
(This used to be commit ee272414e9)
2003-11-07 14:39:47 +00:00
Gerald Carter
178a463524 don't allow setting of the guest account
(This used to be commit 1e461f06ec)
2003-11-07 14:32:55 +00:00
Gerald Carter
9db332645b don't allow setting of the guest account
(This used to be commit e0eea36394)
2003-11-07 14:32:25 +00:00
Volker Lendecke
91e61843d7 From 3_0:
Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.

Volker
(This used to be commit 3a5130f231)
2003-11-07 10:12:43 +00:00
Volker Lendecke
88b0120e56 Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.

Volker
(This used to be commit 3a7c8c4f0e)
2003-11-07 10:11:48 +00:00
Volker Lendecke
99cbab5c3b From 3_0:
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.

Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.

Volker
(This used to be commit 99311b437b)
2003-11-07 09:04:57 +00:00
Volker Lendecke
d5573ccde3 Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.

Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.

Volker
(This used to be commit d7162122ea)
2003-11-07 09:03:02 +00:00
Andrew Bartlett
c22afa7d97 I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.

Let's keep samba simple, and just remove it.

Andrew Bartlett
(This used to be commit 156cf8bede)
2003-11-07 08:36:29 +00:00
Andrew Bartlett
ec04a97496 Remove compleatly wrong comments. (There were correct, 2 years ago...)
Andrew Bartlett
(This used to be commit 256b85802e)
2003-11-07 08:34:43 +00:00
Andrew Bartlett
ab023b0b49 Add newline to debug message
(This used to be commit e0868b978e)
2003-11-07 08:29:29 +00:00
Richard Sharpe
80ff2046bd A fix to allow configure to find iconv on a number of systems including those
that don't have such support in glibc.
(This used to be commit de6d5f1d10)
2003-11-06 23:37:58 +00:00
Tim Potter
9f154119e8 Final round of printf warnings fixes for the moment.
(This used to be commit 0519a7022b)
2003-11-06 22:11:08 +00:00
Jeremy Allison
75b2469063 Fix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy.
(This used to be commit 3c19ac5f1c)
2003-11-06 22:07:12 +00:00
Jeremy Allison
6a594ea65e Fix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy.
(This used to be commit 5d52e6b301)
2003-11-06 22:07:10 +00:00
Tim Potter
40ad5de251 Ignore tallocdump binary. Previous commit was printf warning fixes and an
accidental commit of some other stuff I was working on.
(This used to be commit cfccf00816)
2003-11-06 22:02:36 +00:00
Tim Potter
764e2f7d20 Undo accidentally committed stuff.
(This used to be commit 0a79519bc4)
2003-11-06 21:55:48 +00:00
Tim Potter
0cd8bc6be4 Ignore tallocdump binary.
(This used to be commit addeb1c6c9)
2003-11-06 21:51:08 +00:00
Gerald Carter
949a05bcb7 merge's tpot build fix from 3.0
(This used to be commit ac9f9f9ea8)
2003-11-06 17:39:01 +00:00
Gerald Carter
25d64aa855 run krb5 logins through the username map if the winbindd lookup fails; bug 698
(This used to be commit f779857117)
2003-11-06 17:31:43 +00:00
Gerald Carter
b922425cac run krb5 logins through the username map if the winbindd lookup fails; bug 698
(This used to be commit efe257bce2)
2003-11-06 17:28:44 +00:00
Gerald Carter
bf6f61a3fc patch from MORIYAMA Masayuki to save LDFLAGS during iconv detection; bug 570
(This used to be commit 2277c6e06c)
2003-11-06 17:24:24 +00:00
Gerald Carter
d441dbee4c patch from MORIYAMA Masayuki to save LDFLAGS during iconv detection; bug 570
(This used to be commit 486f495ea7)
2003-11-06 17:23:47 +00:00
Tim Potter
0b76382c5d Undo last commit to get things building again.
(This used to be commit d3af6b443d)
2003-11-06 16:58:33 +00:00
Gerald Carter
662adfa105 bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
(This used to be commit 7a60693a47)
2003-11-06 05:46:23 +00:00
Gerald Carter
2c1d659020 bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
(This used to be commit ccc7634b1c)
2003-11-06 05:46:06 +00:00
Richard Sharpe
a999e7c1b9 Apply the patch to fix iconv detection for FreeBSD to the Samba 3.0.0 branch
as well.
(This used to be commit 44be80e488)
2003-11-06 05:44:55 +00:00
Richard Sharpe
9144e46889 Make the recent changes more pretty.
(This used to be commit e490efd29a)
2003-11-06 05:37:30 +00:00
Richard Sharpe
3d50c8aa22 Better handling of iconv support and etc because gnu libiconv on FreeBSD
changed where it puts things :-)
(This used to be commit 123a516a60)
2003-11-05 23:36:00 +00:00
Richard Sharpe
7d517167f0 Minor comment updates ...
(This used to be commit d7a0c6da0b)
2003-11-05 19:16:56 +00:00
Tim Potter
f59bd26894 Merge of 64-bit printf warning fixes.
(This used to be commit a6cc763333)
2003-11-05 18:28:29 +00:00
Volker Lendecke
150fb8ea58 Compile tdbdump by default.
Volker
(This used to be commit 11da19dd5c)
2003-11-05 17:39:24 +00:00
Volker Lendecke
cb78cd74a2 Compile tdbdump by default.
Volker
(This used to be commit b628ba0fc0)
2003-11-05 17:38:15 +00:00
Tim Potter
5033b016ca Merge from 3.0:
Revision 1.82.2.24:

	       Patch from James Henstridge to allow rpcclient adddriver
	       command to specify printer driver version.  Closes bug #514.
(This used to be commit b873832e33)
2003-11-05 17:37:08 +00:00
Tim Potter
596783105b Merge of some compiler warning fixes.
(This used to be commit 6a001dbd13)
2003-11-05 17:34:33 +00:00
Tim Potter
3c31d65d76 Merge of setenv->putenv for winbind client.
(This used to be commit a26d425f93)
2003-11-05 17:32:38 +00:00
Tim Potter
b216846e8f Merge from 3.0:
Revision 1.42.2.8:

	       Use the actual size of the buffer in strftime instead of a
	       made up value which just happens to be less than
	       sizeof(fstring).  Closes #713.
(This used to be commit 45c28f8a27)
2003-11-05 17:28:18 +00:00
Tim Potter
0467255bfe Merge from 3.0:
Revision 1.10.2.6:

	       Cast to fix warning on Solaris sendfile - check buildfarm
	       output to see if this works!  Bug #706.
(This used to be commit 06c4fc35a7)
2003-11-05 17:26:43 +00:00
Tim Potter
41847b388f Merge from 3.0:
Revision 1.16.2.6:

	       Add prototype for smbc_remove_unused_server() to fix
	       compiler warning.  Bug #706.
(This used to be commit 99f70d86fe)
2003-11-05 17:21:22 +00:00
Tim Potter
8e7a771577 Merge of uname cleanups from 3.0
(This used to be commit e7e17e6b4a)
2003-11-05 17:19:48 +00:00
Tim Potter
c4029527ef Merge from 3.0:
Revision 1.209.2.44:

		Fix crash bug in smbclient completion.  Closes bug #659.
(This used to be commit decc5d9a25)
2003-11-05 17:18:46 +00:00
Tim Potter
930245a0bc Merge from 3.0:
Revision 1.468.2.193:

	       Add ldaplibs to pdbedit link line.  Fixes bug #651.
(This used to be commit 079e00d103)
2003-11-05 17:17:35 +00:00
Tim Potter
36d534ef74 Patch from James Henstridge to allow rpcclient adddriver command to specify
printer driver version.  Closes bug #514.
(This used to be commit c5865e3dfe)
2003-11-05 16:40:13 +00:00
Gerald Carter
3d6f780010 make sure that we expand %H (from vl); bug 612
(This used to be commit d1cf39e2ec)
2003-11-05 04:34:44 +00:00
Gerald Carter
41316b5255 make sure that we expand %H (from vl); bug 612
(This used to be commit a77f592430)
2003-11-05 04:34:31 +00:00
Jeremy Allison
7c92ebb502 Fix coredump in cli_get_backup_list.
Jeremy.
(This used to be commit 13d32f561b)
2003-11-05 00:17:17 +00:00
Jeremy Allison
f581234a7a Fix coredump in cli_get_backup_list.
Jeremy.
(This used to be commit 29413db303)
2003-11-05 00:17:14 +00:00
Jeremy Allison
9c8d23e5d5 Fix debug message warning.
Jeremy.
(This used to be commit 154793981a)
2003-11-05 00:16:01 +00:00
Jeremy Allison
0c94d59205 Fix for bug #771. Fix packet length for browse list reply.
Jeremy.
(This used to be commit dfea28a773)
2003-11-05 00:12:53 +00:00
Jeremy Allison
536f72913e Fix for bug #771. Fix packet length for browse list reply.
Jeremy.
(This used to be commit d085c94dac)
2003-11-05 00:12:49 +00:00
Tim Potter
f46e42c69d Fix crash bug in smbclient completion. Closes bug #659.
(This used to be commit 4480058d85)
2003-11-04 22:38:58 +00:00
Tim Potter
e7d9803d93 Add ldaplibs to pdbedit link line. Fixes bug #651.
(This used to be commit e306c96268)
2003-11-04 21:17:22 +00:00
Tim Potter
fc809973b9 Use the actual size of the buffer in strftime instead of a made up value
which just happens to be less than sizeof(fstring).  Closes #713.
(This used to be commit 761e13da4e)
2003-11-04 20:09:44 +00:00
Tim Potter
cedc634118 Fix typo in debug statement.
(This used to be commit 66e5043553)
2003-11-04 19:53:37 +00:00
Tim Potter
f95e40197f Generate 64-bit clean printf's for build options.
(This used to be commit 1814c29b7d)
2003-11-04 19:47:40 +00:00
Jeremy Allison
b3b7cf12a0 Fix for bug #703, try lowercase netgroups lookups.
Jeremy.
(This used to be commit 8b06385e00)
2003-11-04 18:24:33 +00:00
Jeremy Allison
7b64564fbe Fix for bug #703, try lowercase netgroups lookups.
Jeremy.
(This used to be commit b7ce6294bb)
2003-11-04 18:24:30 +00:00
Tim Potter
e4f1a321a4 Fix missing bracket in quota quote - my fault.
(This used to be commit fc30b6b547)
2003-11-04 14:59:27 +00:00
Tim Potter
82f8a8aabd Use a static string instead of malloced one in winbind_{off,on}() utility
functions.
(This used to be commit 7710232ba2)
2003-11-04 05:49:23 +00:00
Jeremy Allison
3d7fe18881 TDBSAM update code from Aur?lien Degr?mont <adegremont@idealx.com>.
Adds support for an additional field (uint32) which represents the
lockout duration. I think this should be stored as an abolute
UNIX time_t that specifies when the lockout should end - set it
when the lockout is imposed. This new code also updates the on
disk tdb version on load. Being merged into HEAD so Simo can
add any other changes he wants before being back-ported to
SAMBA_3_0.
Jeremy.
(This used to be commit 0eea3f22ab)
2003-11-03 23:59:45 +00:00
Jeremy Allison
c8e7fc1fcd Fix for winbindd on HPUX from albert chin (china@thewrittenword.com)
Jeremy.
(This used to be commit c2f38eb665)
2003-11-03 21:05:50 +00:00
Jeremy Allison
181df301cd Fix for winbindd on HPUX from albert chin (china@thewrittenword.com)
Jeremy.
(This used to be commit 119a89246b)
2003-11-03 21:05:47 +00:00
Gerald Carter
d789f3bcb5 removing #include <compat.h> in hopes to avoid problems with apache header files; will watch the build farm on this to make sure things don't blow up
(This used to be commit b4d80ee747)
2003-11-03 19:23:05 +00:00
Gerald Carter
7c55d23cbf removing #include <compat.h> in hopes to avoid problems with apache header files; will watch the build farm on this to make sure things don't blow up
(This used to be commit e92583cecd)
2003-11-03 19:22:32 +00:00
Volker Lendecke
26ec85d00f From 3_0:
AC_CHECK_MEMBER seems to have problems for some versions of autoconf, at least
autoconf-2.53 on SLES8 does not correctly find the keyblock.

Volker
(This used to be commit f6cff956c4)
2003-11-03 18:11:46 +00:00
Volker Lendecke
a64c70d74a AC_CHECK_MEMBER seems to have problems for some versions of autoconf, at least
autoconf-2.53 on SLES8 does not correctly find the keyblock.

Volker
(This used to be commit c4f36a250a)
2003-11-03 18:11:00 +00:00
Tim Potter
fbb8f131c2 Fix more 64-bit printf warnings.
(This used to be commit 23443e3aa0)
2003-11-03 14:34:25 +00:00
Tim Potter
490dbaec81 Fix some uninitialised variable warnings.
(This used to be commit 68945027b5)
2003-11-03 14:21:10 +00:00
Tim Potter
c8e84154af Printf fixes for 64-bit size_t.
(This used to be commit 8e2c543ebf)
2003-11-02 17:10:12 +00:00
Tim Potter
db2a7d0a7f Tidy up calls to uname so as not to produce output on stderr if
the command line argument being called isn't valid.
(This used to be commit d43922eade)
2003-11-02 16:54:21 +00:00
Tim Potter
1ae80ade5e Fix duplicate libs problem in iconv detection code.
(This used to be commit a2feac08e8)
2003-11-02 16:31:38 +00:00
Tim Potter
1f05df2b36 Use putenv() instead of setenv() in the winbind_{off,on}() functions. Some
platforms don't have setenv().
(This used to be commit a8b487c4cb)
2003-11-02 16:22:28 +00:00
Tim Potter
31e6157dfd Add prototype for smbc_remove_unused_server() to fix compiler warning.
Bug #706.
(This used to be commit eaf69b1ae7)
2003-11-02 14:15:36 +00:00
Tim Potter
0dd2e07ea5 Cast to fix warning on Solaris sendfile - check buildfarm output
to see if this works!  Bug #706.
(This used to be commit 67ab91825d)
2003-11-02 13:59:37 +00:00
Tim Potter
b5e7ec9fcc Merge of fix for bug 661 from 3.0
(This used to be commit c96d470af8)
2003-11-02 04:16:14 +00:00
Tim Potter
17131bb446 Whoops - missed a place where HAVE_STAT_ST_{BLOCKS,BLOCKSIZE} guards
should be present.
(This used to be commit 08aa3f712c)
2003-11-02 04:14:25 +00:00
Tim Potter
14c05904b8 Re-order link command for smbd, rpcclient and smbpasswd to ensure $LDFLAGS
occurs before any library specification.  Closes bug #661.
(This used to be commit 7af7fa9be2)
2003-11-02 04:05:47 +00:00
Volker Lendecke
e45d0f8f46 From 3_0:
This binds the nmbd sending socket to the 'socket address'.

Hmmm. This is correct in 2.2. Obviously I did not test my 3.0 checkin at that
time. Now it hit me at a customer's site...

Volker
(This used to be commit b9179aed4d)
2003-11-01 17:42:44 +00:00
Volker Lendecke
13fe54264e This binds the nmbd sending socket to the 'socket address'.
Hmmm. This is correct in 2.2. Obviously I did not test my 3.0 checkin at that
time. Now it hit me at a customer's site...

Volker
(This used to be commit a0e741aa68)
2003-11-01 17:41:16 +00:00
Gerald Carter
f943812aae set- set-assword when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
(This used to be commit aa2abd5800)
2003-10-31 20:31:25 +00:00
Gerald Carter
94713905d1 prompt for password when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
(This used to be commit ca18ec0f90)
2003-10-31 20:29:18 +00:00
Jeremy Allison
732fecd3a0 Patch from Aurlien Degrmont <adegremont@idealx.com>. "entry" is dependent
on "result", don't free result first.
Jeremy.
(This used to be commit c61a230c5a)
2003-10-31 19:16:59 +00:00
Jeremy Allison
73a9e080cd Patch from Aurlien Degrmont <adegremont@idealx.com>. "entry" is dependent
on "result", don't free result first.
Jeremy.
(This used to be commit 9b24715170)
2003-10-31 19:16:57 +00:00
Tim Potter
b99fb9397f Merge from 3.0:
Revision 1.50.2.12:

    Put in a work-around for ENOTSUP not being defined on OpenBSD.

  Revision 1.50.2.10-11

    Apply latest of Derrell Lippman's changes to libsmbclient.

    Commit Derrell's changes to libsmbclient plus a small change to
    configure.in to see if SGI and other platforms will build.
(This used to be commit e32826980e)
2003-10-31 03:17:01 +00:00
Tim Potter
088820404b Whitespace syncup with 3.0
(This used to be commit 9746ef376d)
2003-10-31 03:02:31 +00:00
Tim Potter
3c8ecd3af1 Formatting syncup with 3.0
(This used to be commit 98881672f5)
2003-10-31 03:00:33 +00:00
Tim Potter
3bf7bb2bcd Fix another unused warning.
(This used to be commit 9032e6eb2b)
2003-10-31 02:58:32 +00:00
Tim Potter
b0f93e3e65 Fix spelling mistake.
(This used to be commit cbd95c5a74)
2003-10-31 02:57:02 +00:00
Tim Potter
adcd3e42b4 Merge from 3.0:
Revision 1.45.2.23:

    Changed output so all debug output goes to stderr, and all file processing
    goes to stdout.

    Note: This change permits use of testparm processing of smb.conf to be
    redirected into a file that can be used as an smb.conf file. ie: All
    information that should not be in smb.conf will be on stderr, all pertinent
    smb.conf info will go to stdout.

    Example of use:
	A fully documented smb.conf.master file can be maintained.
	To create smb.conf do:
		testparm -s > smb.conf
(This used to be commit f323b932f9)
2003-10-31 02:56:11 +00:00
Tim Potter
956a16d6ef Fix some unused variable warnings.
(This used to be commit 512a81c9fd)
2003-10-31 02:53:07 +00:00
Tim Potter
a51e72a19b Merge from 3.0:
Revision 1.2.2.5:

    Remove some unused variables uncovered by the build farm.
(This used to be commit c0585399ac)
2003-10-31 01:42:21 +00:00
Tim Potter
c6ac467d39 Sync up with 3.0
(This used to be commit 3cd8acb6c3)
2003-10-31 01:35:02 +00:00
Tim Potter
483dc4feb5 Sync up some indentation.
(This used to be commit 160903f997)
2003-10-31 01:31:31 +00:00
Tim Potter
ff700f3303 Sync up formatting of the va list stuff - the HEAD version was nicer.
(This used to be commit 6917391fbb)
2003-10-31 01:30:02 +00:00
Tim Potter
64b97d0aa9 Merge from 3.0: Sync up comments.
(This used to be commit c00bd547c8)
2003-10-31 01:18:41 +00:00
Tim Potter
b7047b3539 Merge of some fixes from 3.0:
- Revision 1.468.2.187

      CP* modules are not related to development

  - Revision 1.468.2.191

      Compile fix for tdbbackup when Samba needs to override non-C99
      compliant implementations of snprintf

Sync up formatting for PAM_WINBIND_PICOBJ variable.
(This used to be commit b4f3c8d2f6)
2003-10-31 01:17:37 +00:00
Jim McDonough
8270b9bd29 Add string to uuid fn. Thanks aliguori.
(This used to be commit 5f9fe8304f)
2003-10-30 23:43:18 +00:00
Jeremy Allison
29f33e8287 If nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy.
(This used to be commit a92555e606)
2003-10-30 20:09:44 +00:00
Jeremy Allison
f23c2ff0a0 If nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy.
(This used to be commit aa668a0206)
2003-10-30 20:09:13 +00:00
Jim McDonough
2e65aa1b28 Last of the GUID->struct uuid changes.
GUID has been removed.  If you are dealing with a flattened version of a
[gu]uid, use UUID_FLAT.  smb_pack_uuid and smb_unpack_uuid will switch
between the two.

I'm not sure exactly what the genparse stuff is doing here, so I just
switched it to a UUID_FLAT (no functional change), but I suspect this
may not be the right way to go.
(This used to be commit 001e9d0e81)
2003-10-30 18:13:25 +00:00
Jim McDonough
bff3e7feee Nearing the end of the GUID -> struct uuid changes.
(This used to be commit 0e8fcfac70)
2003-10-30 17:50:56 +00:00
Jim McDonough
4f22327e21 Ok, nearing the end of the GUID->struct uuid changes.
Takes care of secdescs.

Had to move the uuid marshall/unmarshalling code to parse_misc, because
it's needed outside of parse_rpc.c (for no-auth calls)
(This used to be commit 5d2bb079b6)
2003-10-30 17:37:21 +00:00