1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

11209 Commits

Author SHA1 Message Date
Jelmer Vernooij
08b30fcf27 Get rid of module_path_get_name() and use the find backend function
to find duplicates
(This used to be commit 871cad7e9ac38e6f8e4391fcb2894d91300cbe94)
2003-04-24 20:27:19 +00:00
Jelmer Vernooij
c7a6388e7e Check for absolute paths by only checking the first character of the module name.
Don't use strchr_m, which caused race conditions.
(This used to be commit 69ec6be90f889686641b997d3d5cd616e1d0db6d)
2003-04-24 19:47:37 +00:00
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
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
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
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
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
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
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
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
Gerald Carter
cfe53bd066 allow the unix group in a mapping to be changed; doesn't work with LDAP right now but should be ok with tdb's
(This used to be commit fdacad185c4f78958d56bccbd69a0f2628f1b792)
2003-04-23 00:34:31 +00:00
Jeremy Allison
30418a47c6 Limit the number of outstanding print notify messages for a process to
1000.
Jeremy.
(This used to be commit 2e5e4c10d2377493913554e7dab79d97a4d16d87)
2003-04-23 00:19:30 +00:00
John Terpstra
9c6e58869f Added Stephen Roylance's patch - Adds to Status page, a Start All, Restart All
and Stop All deamons button.
(This used to be commit 57cfcb3108935f46cb3938b403a3eaba2888fb55)
2003-04-22 23:19:09 +00:00
Andrew Bartlett
a4b00668e6 Remove ldapsam_search_one_user_by_uid from pdb_ldap.
sambaAccount requires the rid to be present, and doing this fallback is quite
dangerous, becouse it assumes that alorithmic RIDs are in use - which is quite
often not the case.

Also finish of vl's work on 'use a function pointer, not embedded logic' to
tell lower levels that they should/should not attempt to set the user's password
into LDAP with the extended operation.

Andrew Bartlett
(This used to be commit 715d0bd804b6bff4c0b365f98ca196d41ed9c5c4)
2003-04-22 23:14:49 +00:00
Gerald Carter
651ff45e8d don't reset the group type unless specified
(This used to be commit 541f40a144461ca139ac53837d3f31ce6972d18c)
2003-04-22 18:03:55 +00:00
Gerald Carter
1446682565 update copyright notice that is written to the logs
(This used to be commit 6735a9889f6629f4f77006c59c011570031e044f)
2003-04-22 17:32:02 +00:00
Jeremy Allison
2aa7b1573c Add runtime tests for "impossible" case with -DDEVELOPER. Trying to catch logic
error on Linux.
Jeremy.
(This used to be commit 546d1a941b63a538702f2fb668019d2b89f63bdc)
2003-04-22 17:30:53 +00:00
John Terpstra
2595d6f94b Added editreg.
(This used to be commit ce016df1ecbb8a083c9a37b7d61b4356dfbc77a7)
2003-04-22 17:06:03 +00:00