1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

12852 Commits

Author SHA1 Message Date
Jim McDonough
f870072e5c Fix length in findfirst2 responses, fix os/2 clients
(This used to be commit c12feff680b183a22d933bab65b5c095c0548e7e)
2003-04-24 18:58:26 +00:00
Gerald Carter
9530bbe2ad groupmap delet should take a name or a SID
(This used to be commit d9277bd06401cb040390739ae730c8991736c886)
2003-04-24 16:47:32 +00:00
Andrew Bartlett
7041e295eb Revert patch - we need to try the NTLMSSP code below...
Andrew Bartlett
(This used to be commit 317158972ec944742ba47b213999def9abbf7452)
2003-04-24 14:07:13 +00:00
Andrew Bartlett
77ced5915d Use the kerberos error from ads_kinit_password() in the return value from
our SASL code - help in printing a useful error message.

Andrew Bartlett
(This used to be commit 984321bfab79a1ff20b504e115e94bd6270f0196)
2003-04-24 14:02:02 +00:00
Andrew Bartlett
95d47c474b Merge from HEAD - always initailise this to zero - helps callers in loops.
(This used to be commit f200a5b85832ac5ec7724d58da7270cd14c565e3)
2003-04-24 13:55:51 +00:00
Andrew Bartlett
59e0836b7f Merge auth changes from HEAD:
- better error codes than NT_STATUS_UNSUCCESSFUL for domain logon errors
 - make auth_winbind load the ntdomain module if winbind isn't there.
 - use new trusted domains cache to determine if the domain is valid.

Andrew Bartlett
(This used to be commit ec8d6524c6b0c70927a2b57aab71d9e3a7f8a150)
2003-04-24 11:56:09 +00:00
Andrew Bartlett
3f03ecf562 Irix CC reminds us that this is non-standard.
Andrew Bartlett
(This used to be commit 748ed3552b2be1d86387dc3628107375104d8f50)
2003-04-24 11:52:00 +00:00
Andrew Bartlett
a04c643158 Make sure that we don't compile pdb_ldap on systems with ldap.h, but without
-lldap.

Andrew Bartlett
(This used to be commit 5c36308d14c622bb2d466b97376d3b15ca7c47b2)
2003-04-24 11:47:21 +00:00
Andrew Bartlett
30a6f801ae Add vfs_fake_perms to Samba 3.0
Andrew Bartlett
(This used to be commit 3ad260ced99dd703d3fb1cb15e4eba7ecf7c858a)
2003-04-24 10:36:23 +00:00
Andrew Bartlett
596de71fc6 When possible, store the IP address of the connecting client, not just the
hostname.

This makes 'last -i' show the IP.

Thanks to Philip Anderson <pza@australia.op.org> for the idea.

Andrew Bartlett
(This used to be commit 107731c080da1e3e4e13e966f8b79bfd2692a952)
2003-04-24 09:52:29 +00:00
Andrew Bartlett
29133d9677 This is really trying to be a StrnCpy (most names will overflow the 10 char
limit)
(This used to be commit 0e04761abe375bfea48fa2c9ba9e1dc0d56d39f7)
2003-04-24 05:43:45 +00:00
John Terpstra
5c16ca1d3a Update from HEAD.
(This used to be commit 587ced729cb136370c090a03ca6de1b83c4c4772)
2003-04-24 05:38:52 +00:00
John Terpstra
ddd0e5a506 Updating from HEAD.
(This used to be commit 81203dc95c682d9ef5458a68f8ecbf8db197dba6)
2003-04-24 05:21:54 +00:00
Jelmer Vernooij
eae6eb833b Patch from Guenther Deschner to fix build with gcc 3.2
(This used to be commit ab631b31fbabc25cd74ca46fd583cd857538953c)
2003-04-24 03:51:05 +00:00
Jelmer Vernooij
1f008c1203 Patch from Stephan Metzmacher to add default arguments to lp_parm() smb.conf
parameters. Does not break binary compatibility with older modules.
(This used to be commit 147c4d56d873a20a49194c5b036a3694299b1b48)
2003-04-24 03:46:17 +00:00
John Terpstra
8f6e88dbb6 Added patch from Stephen Roylance.
(This used to be commit 71369f90890eeca399fec55d978a5dd4a13f077f)
2003-04-24 02:35:00 +00:00
John Terpstra
488eacdcda More updates: Fix typo in VFS, added docs for pam_smbpass.so to PAM.
(This used to be commit 2dc12c8c64616b01934aa98d5d0650b77d33194b)
2003-04-24 00:47:24 +00:00
John Terpstra
ecade958af More updates.
(This used to be commit e4012c90323f7e87c3174d74020c6fcddb05820c)
2003-04-23 23:22:48 +00:00
Shirish Kalele
8a106dcda9 For deep referrals, track consumed path using a counter, and calculate the
consumed count only if and when it is needed. Check into SAMBA_3_0.
(This used to be commit d6a326ba46b0e45a2d97b7aa9762bfefca347d89)
2003-04-23 19:06:21 +00:00
Paul Green
fd472ad1e8 Missed two references to a renamed file.
(This used to be commit 513dd6d414270b4e8f91f1cee6c49155b095c488)
2003-04-23 17:29:51 +00:00
Paul Green
7c770146d6 Backport changes from head to shorten the filenames of the test cases.
(This used to be commit e2315ebc9a653a3c804323d55a96e0b378351e8d)
2003-04-23 17:15:10 +00:00
John Terpstra
a141af397e Updated FLAGs - Affects only SWAT.
(This used to be commit 80f2790eb9c1382c91e5e2668f3b8d82c220ce51)
2003-04-23 14:56:30 +00:00
Andrew Bartlett
14a317010c Thanks to a reminder from vance - delete build_options.c from CVS, now
it's autogenerated.
(This used to be commit 1cbc66e2e35342980f27151622658e2f2f498245)
2003-04-23 14:31:23 +00:00
Andrew Bartlett
53004910eb Patch by Vance Lankhaar <vlankhaar@linux.ca> to automaticly regenerate the
build options, so we will always have the right values for how and when
an smbd was built.

In particular, this is indended to address bitrot caused by configure.in
changes.

Andrew Bartlett
(This used to be commit 2be258071c71986ba9af01e9a09ec49909a620dd)
2003-04-23 14:19:03 +00:00
Andrew Bartlett
66468d2315 Patch by Metze to ensure that we always at least initialize our output string
for rpc_pull_string.  If we had a NULL or zero-length string, we would use
uninitialised data in the result string.

Andrew Bartlett
(This used to be commit df10aee451b431a8a056a949a98393da256185da)
2003-04-23 14:07:33 +00:00
Andrew Bartlett
11c453951a More fun with Sun CC needing constant initializers
(This used to be commit ce3dd8fd69231798185e3e3bb988775e5671e070)
2003-04-23 13:59:32 +00:00
Andrew Bartlett
7ae2477197 StrnCpy -> safe_strcpy() on a over-malloced struct.
Andrew Bartlett
(This used to be commit e4f1171d57a6186f85b87586a525b3bbaf601974)
2003-04-23 13:35:10 +00:00
Andrew Bartlett
2a3a9f0bf4 Merge the 'safe' parts of my StrnCpy patch - many of the users really wanted
a pstrcpy/fstrcpy or at most a safe_strcpy().

These have the advantage of being compiler-verifiable.

Get these out of the way, along with a rewrite of 'get_short_archi' in the
spoolss client and server.  (This pushes around const string pointers, rather
than copied strings).

Andrew Bartlett
(This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-04-23 13:27:35 +00:00
Andrew Bartlett
13b54b9cfa We don't have IDMAP in 3.0 yet.
(This used to be commit a507f170d29914b0bb845878a8db97f51e7dff55)
2003-04-23 13:23:47 +00:00
Andrew Bartlett
1a9394195d Merge HEAD's winbind into 3.0.
This includes the 'SIDs Rule' patch, mimir's trusted domains cacheing code,
the winbind_idmap abstraction (not idmap proper, but the stuff that held up
the winbind LDAP backend in HEAD).

Andrew Bartlett
(This used to be commit d4d5e6c2ee6383c6cceb5d449aa2ba6c83eb0666)
2003-04-23 11:54:56 +00:00
Andrew Bartlett
656d2c75c9 Don't try to continue if initialisation fails (merge from HEAD)
(This used to be commit ff3ec67e120d29db2b85ce444ce89a205ea7a067)
2003-04-23 11:29:54 +00:00
Andrew Bartlett
be86f6555a Make the variable name match the comment.
Andrew Bartlett
(This used to be commit 5a577f8cafa7375bd8485763f163de939ddc4a39)
2003-04-23 11:11:02 +00:00
Andrew Bartlett
2ee8590c4f This define does not always seem to be present, so define it if need be.
Andrew Bartlett
(This used to be commit 007143e2435904d941a62934986ac54e343f4936)
2003-04-23 11:03:08 +00:00
Andrew Bartlett
327ad645dd Fix up non-constant initialisers for Sun's CC.
Andrew Bartlett
(This used to be commit 82ba1b4d16da587c5e21739b11c5d84a575534ad)
2003-04-23 10:28:56 +00:00
Andrew Bartlett
06403c439f Add some more info to the diags output.
(This used to be commit 2ee7254fded79d888f8009b71347bea8a89f47e9)
2003-04-23 10:19:56 +00:00
Andrew Bartlett
db7b2e822f Parinoia for compleatly broken SMB servers that don't send back the right
fstype for IPC$ - assume the device type is IPC.

Andrew Bartlett
(This used to be commit 5ec78042124589d7d4e377581c187712950c93b2)
2003-04-23 10:07:25 +00:00
Andrew Bartlett
95af8e27b1 Make this safe for -DDEVELOPER checks.
Andrew Bartlett
(This used to be commit 39fb77d8c1d9dddf00e8063198157bf77fb58a8f)
2003-04-23 10:06:00 +00:00
Andrew Bartlett
9265628c20 This const isn't quite vaild C.
Andrew Bartlett
(This used to be commit de96c1aaca9006696d61aa3d07151c0f74516e63)
2003-04-23 09:32:29 +00:00
Andrew Bartlett
5cfcb6b4c7 add test file for FDSESS
(This used to be commit 309ebac68999f6ba97a3dc558283e5f13dfc3044)
2003-04-23 09:30:33 +00:00
Andrew Bartlett
2e9c2084a6 Add a check to ensure that the server returns the correct device type, not
just the correct error.

This should help us avoid breaking NT4 IPC$ connections, for example.

This has required that we don't overwrite the device type for IPC$ in our
tcon&X code, but only smbwrapper even uses it, and a server that doesn't send
a correct dev type breaks other things pretty badly.

In any case, I'll 'fix' smbwrapper :-).

Andrew Bartlett
(This used to be commit a93057efcb6e639be05b7bdcb9729ed8f39f5f62)
2003-04-23 09:26:07 +00:00
Andrew Bartlett
db3f4d3eed Start testing a few more things out of smbtorture in the build farm.
Andrew Bartlett
(This used to be commit 273a9bd7aa608d37b127b61d41773ba8135e38f7)
2003-04-23 08:46:39 +00:00
Andrew Bartlett
2206df6b30 Merge torture tests from HEAD - it looks like we had rather an incomplete
merge last time.  I hope this might fix a few failures on the build farm too.

Andrew Bartlett
(This used to be commit 0c837126923cc30fa60223a5a68d4f527971cc7b)
2003-04-23 08:12:34 +00:00
John Terpstra
a7d2c332fc Update - closed off for now
(This used to be commit 2ddb882596e5d2219ccc96fa11dffa0fdc900a17)
2003-04-23 04:40:03 +00:00
Andrew Bartlett
4962f4d176 Try to keep existing behaviour for our printing code - never return
global_myname(), always either the name the client called us, or if they
didn't call us anything useful, our IP address.

Jerry, can you check this?

Andrew Bartlett
(This used to be commit 599e70bffbae9930b949c9b82cbc8dfc7c966d78)
2003-04-23 01:44:04 +00:00
Andrew Bartlett
95705e904f Fix this for both *SMBSERVER and *SMBSERV as per comments in loadparm.c.
Andrew Bartlett
(This used to be commit c6d416541be5349254a63e30fa29b022516b094e)
2003-04-23 01:34:56 +00:00
Andrew Bartlett
97a9832541 Try to avoid setting *SMBSERVER as a 'local name'.
Andrew Bartlett
(This used to be commit 5b5e167bb1a760a4f9c603feea886ce1dab52e19)
2003-04-23 01:21:42 +00:00
Andrew Bartlett
0e26a6d3f5 Don't leak the session identifier string when we shut down a vuid.
Andrew Bartlett
(This used to be commit 33189b4be0ac79d5e7bc2606f40187118ee506a4)
2003-04-23 01:05:26 +00:00
Andrew Bartlett
846a773bda Now that Volker fixed the real issues with ldapsam and adding null attributes
etc, move the SAMR create_user code back to using the 'pdb_init_sam_pw' method
to fill out the attributes.

This is basicly the same code, but we really didn't need the duplication.

Also, take advantage of the fact that RIDs will always be returned back into
the SAM_ACCOUNT on ADD, so we don't need to duplicate the 'get'.

This should also help in sites with replicated LDAP - the second fetch might
occour before the first is replicated back.

Andrew Bartlett
(This used to be commit 39714c24fd9da4701d4fe69ddd3d61a25254409f)
2003-04-23 01:04:20 +00:00
Andrew Bartlett
da6b12b931 - Merge a memory leak fix from HEAD
- change update behaviour for new RIDs:
 - store the new RID into the SAM_ACCOUNT, so that the caller get's it back
   automaticly
 - use this to make the code paths simpiler for the normal 'need_update' code.

We must always store a RID if we intend to use the sambaAccount objectClass

Andrew Bartlett
(This used to be commit 5edeee5116b9c775a1bded1d53cb2b22c7a2765f)
2003-04-23 00:59:19 +00:00
Andrew Bartlett
63118136fa Merge idra's fix for pdb_tdb segfaults from HEAD to 3.0 - sombody changed
unix_strlower semantics.

Andrew Bartlett
(This used to be commit 93bdd1a2925edb9dea3e85d8b025a65460896c05)
2003-04-23 00:56:06 +00:00