1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

11727 Commits

Author SHA1 Message Date
Simo Sorce
9e9849c0ee add metze's patch for smb_register functions
(This used to be commit 1480c7e8c7)
2003-05-16 06:20:57 +00:00
Simo Sorce
db0a223156 add idmap_winbind unless I made a better way to solve SID type for domain
SIDs
(This used to be commit b24c0efc4b)
2003-05-16 06:20:33 +00:00
Tim Potter
f93f79d6ed Merge: clarify secure channel connection comment.
(This used to be commit dd063a298f)
2003-05-16 01:58:42 +00:00
Tim Potter
627aa735fb Clarify a comment: The secure channel connection must be opened on the
same session (TCP connection) as the one the challenge was requested
from.
(This used to be commit 5cb9b99f0f)
2003-05-16 01:57:57 +00:00
Tim Potter
6ab6a2e6af Merge get_global_sam_name() from 3.0 to fix compile breakage.
(This used to be commit bc71d7a4ab)
2003-05-16 00:31:51 +00:00
Jeremy Allison
ec7b079ab3 Patch from Luke Howard <lukeh@PADL.COM> to recognise local groups.
Jeremy.
(This used to be commit d7a23afe14)
2003-05-15 19:43:21 +00:00
Jeremy Allison
13686d6772 Patch from Luke Howard <lukeh@PADL.COM> to recognise local groups.
Jeremy.
(This used to be commit 626116b738)
2003-05-15 19:43:18 +00:00
Jeremy Allison
a62a29c2df Fix for winbindd segfault (finally I think this is the correct one :-)
from "Roylance, Stephen D." <SROYLANCE@PARTNERS.ORG>.
Jeremy.
(This used to be commit 459fb6519b)
2003-05-15 18:25:03 +00:00
Jeremy Allison
3ededa5f7b Fix from Steve G <linux_4ever@yahoo.com>. Ensure sigemptyset is called on
the sa_mask to prevent valgrind complaints.
Jeremy.
(This used to be commit e065c3a58f)
2003-05-15 17:37:52 +00:00
Jeremy Allison
e325a2e16a Fix from Steve G <linux_4ever@yahoo.com>. Ensure sigemptyset is called on
the sa_mask to prevent valgrind complaints.
Jeremy.
(This used to be commit ef2d5a9c0c)
2003-05-15 17:37:49 +00:00
Jeremy Allison
0f4b795d28 Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy.
(This used to be commit 9202362ee1)
2003-05-15 17:23:37 +00:00
Jeremy Allison
5ffd33df94 Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy.
(This used to be commit 43ca4b8a84)
2003-05-15 17:23:35 +00:00
Jeremy Allison
a975bc2471 Ensure sys_adminlog code won't coredump with incorrect client params.
Jeremy.
(This used to be commit b754089a26)
2003-05-15 17:21:32 +00:00
Jeremy Allison
88b1670e8c Ensure sys_adminlog code won't coredump with incorrect client params.
Jeremy.
(This used to be commit 0f7f762a1e)
2003-05-15 17:21:28 +00:00
Jelmer Vernooij
6203409d2e Patch from Luke Howard <lukeh@PADL.COM> that fixes some weird handling of
modules in auth/
(This used to be commit 4b6785a6c0)
2003-05-15 08:47:28 +00:00
Jelmer Vernooij
c62e546efd Patch from Luke Howard <lukeh@PADL.COM> that fixes some weird handling of
modules in auth/
(This used to be commit 3d804efe76)
2003-05-15 08:43:52 +00:00
Tim Potter
c05858c893 Merge of incorrect emacs mode fix.
(This used to be commit 9d973bdfb7)
2003-05-15 04:17:54 +00:00
Tim Potter
fa80cdcae6 Removed (incorrect) emacs mode setting. Use emacs' built in autoconf
mode instead of m4 mode.
(This used to be commit 1cabd4ba04)
2003-05-15 01:39:45 +00:00
Jeremy Allison
05799e60fc Ok, try and fix this correctly... Simplify the nasty loop logic.
Jeremy.
(This used to be commit c19599a562)
2003-05-14 21:28:54 +00:00
Jeremy Allison
1904a21193 Fix winbindd coredump. Remember to set a ** pointer to null before
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
(This used to be commit 5d3ac0e39b)
2003-05-14 20:48:48 +00:00
Jeremy Allison
430d12876b Fix winbindd coredump. Remember to set a ** pointer to null before
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
(This used to be commit b6e7890017)
2003-05-14 20:48:45 +00:00
Gerald Carter
7f256452c1 fix quota build on non-64bit systems
(This used to be commit 227ac95338)
2003-05-14 20:22:48 +00:00
Gerald Carter
1124804f5d readding reverted changes during idmap merge (noticed by Andrew b.)
(This used to be commit d9fd4b8be3)
2003-05-14 18:37:18 +00:00
Gerald Carter
b81af9ebbd readding reverted changes during idmap merge (noticed by Andrew b.)
(This used to be commit c6d836c61c)
2003-05-14 18:36:54 +00:00
Alexander Bokovoy
2c01eef4d7 Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. Now we are defaulting to --with-quotas=no but anyway trying to test them in configure. This is done to get information about as much quota API variations as possible -- when --with-quotas=no this does not affect build but provides us with more detailed information on build farm.
(This used to be commit 3786695c72)
2003-05-14 14:38:11 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118)
2003-05-14 10:59:01 +00:00
Gerald Carter
e074e1e819 fix group mapping in LDAP under new schema
(This used to be commit 59328b8c8a)
2003-05-14 05:28:45 +00:00
Gerald Carter
df641bc7ca fix group mapping in LDAP under new schema
(This used to be commit 0714dda7cc)
2003-05-14 05:28:16 +00:00
Gerald Carter
849e0d6895 syncing LDAP schema changes with Samba_3_0
(This used to be commit a1326ea348)
2003-05-14 04:39:55 +00:00
Gerald Carter
5d16254f56 *****LDAP schema changes*****
New objectclass named sambaSamAccount which uses attribute
prefaced with the phrase 'samba' to prevent future name clashes.

Change in functionality of the 'ldap filter' parameter.  This always
defaults to "(uid=%u)" now and is and'd with the approriate objectclass
depending on whether you are using ldapsam_compat or ldapsam

conversion script for migrating from sambaAccount to
sambaSamAccount will come next.
(This used to be commit 998586e652)
2003-05-14 03:32:20 +00:00
Tim Potter
65bc416e65 Move some #ifdefs and function prototypes around to avoid a compiler
warning when we have a working version of snprintf()
(This used to be commit 080a943e24)
2003-05-14 01:14:06 +00:00
Tim Potter
f184074799 Move some #ifdefs and function prototypes around to avoid a compiler
warning when we have a working version of snprintf()
(This used to be commit 4836c0c0fc)
2003-05-14 01:10:46 +00:00
Tim Potter
e25e8fac4d Fix pointer return bug in get_unix_attributes()
(This used to be commit 04e2fe104d)
2003-05-14 00:59:26 +00:00
Tim Potter
8652163471 Fix pointer return bug in get_unix_attributes()
(This used to be commit 7aa54f0a7f)
2003-05-14 00:58:41 +00:00
Tim Potter
402fbc518a spelling
(This used to be commit 865c112756)
2003-05-14 00:46:43 +00:00
Tim Potter
3bd3125d5a spelling
(This used to be commit 249a697470)
2003-05-14 00:38:58 +00:00
Tim Potter
d956b34997 spelling
(This used to be commit 1b4f904277)
2003-05-14 00:27:12 +00:00
Tim Potter
eb776e4fb6 spelling
(This used to be commit 6097b050d0)
2003-05-14 00:26:32 +00:00
Andrew Bartlett
b47963ae5a Restore a number of fixes that idra removed when he merged his
idmap-and-the-rest from HEAD.

These are correctness fixes that were already in 3.0, and a memory leak fix.

The pdb_ldap changes are held back at jerry's request (he is also playing
with pdb_ldap ATM).

Andrew Bartlett
(This used to be commit c7d5e336bd)
2003-05-13 15:29:23 +00:00
Andrew Bartlett
d9029797fe Fix non-constant initialiser for Sun CC.
(This used to be commit c2948b9248)
2003-05-13 06:13:36 +00:00
Tim Potter
660e1a77dc Add pythoncheck to make check target.
(This used to be commit 7149dc65c7)
2003-05-13 04:38:09 +00:00
Tim Potter
9b32fe9a2f Sync up with 3.0 version.
(This used to be commit b02ea3c137)
2003-05-13 04:35:58 +00:00
Andrew Bartlett
ddb600102f Try to fix up some code in pdb_smbpasswd that assumed we still had a 'uid'.
This is to get non-unix accounts going for the build farm.

Andrew Bartlett
(This used to be commit 3daf7cba23)
2003-05-13 01:00:25 +00:00
Jeremy Allison
d7ec9f6835 Fix compiler warnings.
Jeremy.
(This used to be commit e12934c67b)
2003-05-12 21:29:01 +00:00
Jeremy Allison
6abef08100 Fix obvious compiler warnings.
Jeremy.
(This used to be commit 2a6d0c2481)
2003-05-12 21:27:54 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978)
2003-05-12 18:12:31 +00:00
Gerald Carter
d33db506ca fixing typos in debug statements
(This used to be commit bd660f45df)
2003-05-12 16:08:11 +00:00
Gerald Carter
9308eaf77d fixing typos in debug statements
(This used to be commit f59bcb51cf)
2003-05-12 16:06:05 +00:00
Alexander Bokovoy
c9bfb7660b Eliminate NULL pointers from VFS interface. All hooks now really callable, producing either correct result or returning error if the feature isn't supported in the configuration
(This used to be commit af0a17349e)
2003-05-12 16:03:16 +00:00
Alexander Bokovoy
ed1c7282e4 GCC accepts unnamed initalization of sub-structure. Let's see how AIX behave with this. Previous fix was incorrect.
(This used to be commit 13e1bbd803)
2003-05-12 09:01:50 +00:00
Tim Potter
1a38fcb22a Re-enable secure channel for net rpc vampire.
Jump out of sam entry processing loop if the return value from
cli_netlogon_sam_sync() isn't OK or STATUS_MORE_ENTRIES.
(This used to be commit 47d8ee3679)
2003-05-12 07:18:36 +00:00
Tim Potter
5b776f179a Fix two bugs that were stopping net rpc vampire from working over secure
channel:

  - If the domain name passed to create_rpc_bind_req() is empty, use
    lp_workgroup()

  - Correctly set the auth_padding field when the send_size is a multiple
    of 8 bytes

I've tested with nt4sp6 and win2ksp0 and it seems to work, although
there are no password hashes transferred from win2k.  The empty
passwords are being protected by the secure channel encryption though.
(This used to be commit a8c11e8556)
2003-05-12 07:16:21 +00:00
Richard Sharpe
6e4c1e4e4d A small patch from metze to fix builds on some platforms ...
http://lists.samba.org/pipermail/samba-technical/attachments/20030512/0332258a/vfs-fix-01.obj
(This used to be commit 5d643b9d03)
2003-05-12 06:57:32 +00:00
Alexander Bokovoy
fe3b05eec4 Fix a wrong define check.
(This used to be commit f1c4f65ae0)
2003-05-12 03:13:41 +00:00
Alexander Bokovoy
eeac7cc99d Wrap into WITH_QUOTAS yet another place in trans2
(This used to be commit fea5d85d94)
2003-05-12 02:53:17 +00:00
Alexander Bokovoy
fdfcb62364 Forgot to actually change default for quotas to -no- in configure.in
(This used to be commit 7c2395d7cd)
2003-05-12 02:45:29 +00:00
Alexander Bokovoy
f3e2ad6d4d Forgot to actually change default for quotas to -no- in configure.in
(This used to be commit 73cf63a27f)
2003-05-12 02:41:41 +00:00
Alexander Bokovoy
92c8ca92c3 Better isolate quota stuff
(This used to be commit 73de13159c)
2003-05-12 02:23:50 +00:00
Alexander Bokovoy
f9c23432ae Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit 01cff3e2e4)
2003-05-12 02:01:31 +00:00
Andrew Bartlett
69306dcdd9 Fix up a bit of my sloppy C.
(This used to be commit f67cc24acf)
2003-05-12 01:49:03 +00:00
Alexander Bokovoy
e102cdf58e Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit ee5fa84068)
2003-05-12 01:43:59 +00:00
Alexander Bokovoy
e8573c8fa9 Add NT quota support. Patch from Stefan (metze) Metzemacher
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab
2. Disabled by default and when requested, will be probed and enabled only on Linux where it works
3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far
Documentation to follow
(This used to be commit 4bf022ce9e)
2003-05-12 01:20:17 +00:00
Andrew Bartlett
80f402837f Give up on the idea of avoiding lp_load() in ntlm_auth....
Also, we might be given a 0 length challenge, so don't smb_panic() for
smb_xmalloc() of zero size.

Andrew Bartlett
(This used to be commit 4842de04cf)
2003-05-12 00:18:45 +00:00
Andrew Bartlett
ca40b71686 Make it possible to actually use --user-SID and --group-SID on a standard command line.
Andrew Bartlett
(This used to be commit dd14da7566)
2003-05-12 00:17:44 +00:00
Andrew Bartlett
4407869ad2 Fix compile.
(This used to be commit ca2e453c78)
2003-05-11 23:49:36 +00:00
Alexander Bokovoy
2018fcd277 Add new files needed for VFS fixes.
1. idmap.h is used for unid_t only, agreed by Simo
2. sysquotas.h is used to add quota support to VFS layer and is needed for future NT quota commit
3. vfs_macros.h provides convenient macros to access VFS API.
(This used to be commit 1dd5786359)
2003-05-11 23:44:26 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5ca)
2003-05-11 23:34:18 +00:00
Volker Lendecke
0710bab071 Set the password for a newly created trustdom account. Tested against
PDCs running NT4SP1, NT4SP6 and Samba 3.0.

Volker
(This used to be commit 2143446043)
2003-05-11 16:59:06 +00:00
Volker Lendecke
fda311d527 When we have a NT4SP0 PDC trust us, we first have to check the
password. On NT4, NT_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT means
the password was correct. So the PDC believed that he had his trust
account correctly added. Later the auth2 naturally failed.

BTW, setting up an interdom trust account is not what I would call
well documented and easy to handle... Working on that now :-)

Volker
(This used to be commit e4e44cf3b1)
2003-05-11 13:20:27 +00:00
Volker Lendecke
914ef37419 Ok, this is a hack. On a netsec bind reply I did not see anything
useful in the auth verifier yet. So this patch ignores it.

Really checking this would be a lot more intrusive: in rpc_api_pipe we
would have to distinguish between binds and normal requests, or have
more state in the netsec info of cli_state, which is also somewhat
hackish.

Volker
(This used to be commit 8de04fcf68)
2003-05-11 08:08:25 +00:00
Andrew Bartlett
2735fb0119 As discussed on samba-technical - move to 'primaryGroupSid' insted of
primaryGroupID (rid).  This is consistant with the move from 'rid' to ntSid
for the primary user identifier.

Also cope with legacy installations where primaryGroupID might have been
stored as 0.

Andrew Bartlett
(This used to be commit 0e432817cb)
2003-05-11 05:59:34 +00:00
Andrew Bartlett
0058395444 Using /dev/urandom for determining an ldap server backoff is a waste of system
entropy - use sys_random() instead.

Andrew Bartlett
(This used to be commit 640462a365)
2003-05-11 02:26:53 +00:00
Jelmer Vernooij
ae326905ad Forgot one file.
(This used to be commit 71f6fb16ba)
2003-05-10 14:48:46 +00:00
Jelmer Vernooij
9a5defd6c9 Remove latest module_dummy patch from metze and me.
(This used to be commit 32c8796f2a)
2003-05-10 12:57:03 +00:00
Jelmer Vernooij
4c9994d631 Reverse latest module_dummy patch from metze and me.
(This used to be commit 9dc8f7b4d4)
2003-05-10 12:56:20 +00:00
Jelmer Vernooij
0914e541f5 Reverse previous patch from Stefan and me after comments by Andrew Bartlett
(This used to be commit d817eaf0ec)
2003-05-10 11:49:51 +00:00
Jelmer Vernooij
7ed8b615b9 Reverse previous patch from Stefan and me after comments by Andrew Bartlett.
(This used to be commit d31509fe88)
2003-05-10 11:47:29 +00:00
Jelmer Vernooij
ec40d70b3b Patch from metze and me that adds dummy smb_register_*() functions
(This used to be commit 367a5cad1e)
2003-05-10 10:56:20 +00:00
Jelmer Vernooij
c507ebe567 Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
(This used to be commit 74d9ecfe2d)
2003-05-10 10:53:48 +00:00
Jeremy Allison
c3b5da608b Fix from Tom.Lackemann@falconstor.com to correctly set the flags based
on the security entries sent.
Jeremy.
(This used to be commit 748ae44d55)
2003-05-10 02:05:27 +00:00
Jeremy Allison
1263c6e36c Fix from Tom.Lackemann@falconstor.com to correctly set the flags based
on the security entries sent.
Jeremy.
(This used to be commit 45953d59f7)
2003-05-10 02:05:24 +00:00
Jeremy Allison
2d7a8480cf Optimisation. We don't need to do 2 strlen's when we're setting the stat
struct in the correct place.
Jeremy.
(This used to be commit 4cd8b27671)
2003-05-10 00:35:38 +00:00
Jeremy Allison
364792cd48 Optimisation. We don't need to do 2 strlen's when we're setting the stat
struct in the correct place.
Jeremy.
(This used to be commit 98729bc9a6)
2003-05-10 00:35:23 +00:00
Jeremy Allison
b6e365271f Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
(This used to be commit ec36cb4f6f)
2003-05-10 00:32:13 +00:00
Jeremy Allison
7ae17cc151 Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
(This used to be commit 151b7d0d88)
2003-05-10 00:30:47 +00:00
John Terpstra
aae4f09c84 Fix typo.
(This used to be commit 7bec28f23c)
2003-05-10 00:03:58 +00:00
Gerald Carter
b493aadb7a removing total print jobs since it is not used anymore
(This used to be commit 6138093aa0)
2003-05-09 21:49:24 +00:00
Gerald Carter
6278185860 removing total print jobs since it is not used anymore
(This used to be commit b87be0dddf)
2003-05-09 21:47:32 +00:00
Andrew Bartlett
03d8119017 Makefile changes to allow new NTLMv2 patch to work.
(This used to be commit 0c1946e51c)
2003-05-09 15:25:20 +00:00
Andrew Bartlett
4f52bd500b Cleanups. My NTLMv2 changes also changed the preference from using an implicit
structure-memcpy for DATA_BLOB parameters to using a pointer to that DATA_BLOB.

auth_sam calls some of these functions, so I've cleaned it all up to use this
format now.

Also clean up some debug statements to make them easier to read.

Andrew Bartlett
(This used to be commit 0c355c274a)
2003-05-09 15:02:11 +00:00
Andrew Bartlett
d06f95ca78 Finally get NTLMv2 working on the client!
With big thanks to tpot for the ethereal disector, and for the base code
behind this, we now fully support NTLMv2 as a client.

In particular, we support it with direct domain logons (tested with ntlm_auth
--diagnostics), with 'old style' session setups, and with NTLMSSP.

In fact, for NTLMSSP we recycle one of the parts of the server's reply directly...

(we might need to parse for unicode issues later).

In particular, a Win2k domain controller now supplies us with a session key
for this password, which means that doman joins, and non-spnego SMB signing
are now supported with NTLMv2!

Andrew Bartlett
(This used to be commit 9f6a26769d)
2003-05-09 14:42:20 +00:00
Jim McDonough
a441a70b16 Fix bug #4 for net rap. Allow more than 50 chars for long form listings of users and groups.
(This used to be commit 27ca9bde6b)
2003-05-09 13:06:11 +00:00
Jim McDonough
62c3744709 Fix bug #4 for net rap. Allow more than 50 chars for long form listings of users and groups.
(This used to be commit dcc6d9e76c)
2003-05-09 12:58:28 +00:00
Andrew Bartlett
60fa5c308b Fix comment - we now have 5 types of error...
(This used to be commit 372a574a73)
2003-05-09 09:45:37 +00:00
Andrew Bartlett
5f5c4aaffd Make sure we always have some client data, not just the hash. An NTLMv2 or
LMv2 response less than 24 bytes is just silly.

Andrew Bartlett
(This used to be commit b4ecdb2e58)
2003-05-09 09:41:08 +00:00
Andrew Bartlett
376b8d57ee Elsewhere, we use a #define for this environment variable name, so do the
same here.

Andrew Bartlett
(This used to be commit a4556786d2)
2003-05-09 09:37:12 +00:00
Andrew Bartlett
cfe8b79c77 When checking if a SID is in a domain, make sure that indeed the user RID is
one element longer than the domain sid.

Andrew Bartlett
(This used to be commit c61e5e3877)
2003-05-09 09:33:51 +00:00
Richard Sharpe
c3cad25e5e Sync up to head ...
(This used to be commit 045210e129)
2003-05-09 07:43:07 +00:00
Richard Sharpe
a5f417c33b Some more static definitions ...
(This used to be commit 05d7850302)
2003-05-09 07:42:23 +00:00
Richard Sharpe
908491a0ec Add some static ...
(This used to be commit 5368f10eab)
2003-05-09 07:03:10 +00:00
Richard Sharpe
f5dd6b2750 Sync to the changes in head ...
(This used to be commit 7f76eac5a0)
2003-05-09 06:23:55 +00:00
Richard Sharpe
00dde89dcd Some more fixes for syntax problems on AIX etc ...
(This used to be commit 2075692548)
2003-05-09 06:23:15 +00:00
Tim Potter
917c2fcf6a Added some more diagnostic tests to check out a theory that having either hash
- auth with ntlmv2 and lmv2 but deliberately break the ntlmv2 hash
  - auth with ntlmv2 and lmv2 but deliberately break the lmv2 hash
  - auth with ntlm and lm but deliberately break the ntlm hash
  - auth with ntlm and lm but deliberately break the lm hash

My theory is that the NTLM or NTLMv2 field must be correct and if it is,
it doesn't matter what the value of the LM or LMv2 field is.

Fixed cosmetic test name display bug.
(This used to be commit 5dcde9451b)
2003-05-09 06:03:11 +00:00
Richard Sharpe
01d58b75ea Fix up a bunch of problems in editreg.c
Now the build farm will no doubt find more.
(This used to be commit e91e648c9b)
2003-05-09 05:48:50 +00:00
Richard Sharpe
c1b0d515d5 Fix up a bunch of compiler warnings ...
(This used to be commit cd1182ba75)
2003-05-09 05:39:50 +00:00
Richard Sharpe
40c924cb1e Fix some compiler warnings about const etc ...
(This used to be commit edc51dbc9c)
2003-05-09 04:59:36 +00:00
Jeremy Allison
5418b7b5f0 Fix nasty bug pointed out by samba-technical poster. If name is mangled
then we weren't always correctly detecting that it had a valid stat struct
and so might now return a 'file existed'. Finally realized this when installing
the W2K resource kit as a test case.
Jeremy.
(This used to be commit a0688316ce)
2003-05-09 01:06:43 +00:00
Jeremy Allison
f359b4bdf6 Fix nasty bug pointed out by samba-technical poster. If name is mangled
then we weren't always correctly detecting that it had a valid stat struct
and so might now return a 'file existed'. Finally realized this when installing
the W2K resource kit as a test case.
Jeremy.
(This used to be commit d48069ccd8)
2003-05-09 01:06:27 +00:00
Gerald Carter
11d5c0a8b4 fix bug #47; revert registration of workgroup<1b> to 2.2 behavior
(This used to be commit 26824f572d)
2003-05-08 21:20:07 +00:00
Gerald Carter
417d0e9afc fix bug #47; revert registration of workgroup<1b> to 2.2 behavior
(This used to be commit 016f6b4e19)
2003-05-08 21:19:58 +00:00
Gerald Carter
1463c220c5 fixed bug #75; add check for non-zero destlen
(This used to be commit bfcec106d0)
2003-05-08 20:19:21 +00:00
Gerald Carter
27d68a306d fixed bug #75; add check for non-zero destlen
(This used to be commit 83bb84f131)
2003-05-08 20:19:10 +00:00
Jim McDonough
1c84123026 Hopefully re-enable building heimdal. It needs -lresolv included in LIBS
to link during configure checks.
(This used to be commit 7af282e7ff)
2003-05-08 17:02:13 +00:00
Volker Lendecke
7f0740b7c0 Revert a patch that somehow slipped in...
Volker
(This used to be commit 6cde3d4d65)
2003-05-08 08:12:57 +00:00
Volker Lendecke
d1da999e0a This puts real netlogon connection caching to winbind. This becomes
important once we start doing schannel, as there would be a lot more
roundtrips for the second PIPE open and bind. With this patch logging
in to a member server is a matter of two (three if you count the
ack...) packets between us and the DC.

Volker
(This used to be commit 5b3cb7725a)
2003-05-08 08:02:52 +00:00
Volker Lendecke
53f0ebc82b This puts back wins.dat into nmbd for easy editing. It leaves most of
the other infrastructure with name owners etc in place. If anybody is
really going to tackle winsrepld, it will probably not be hard to put
the additional info back.

Volker
(This used to be commit eb82daa84a)
2003-05-08 07:33:39 +00:00
Tim Potter
bbdc326f15 Another attempt at undoing my bogus patch 1.55.2.19
(This used to be commit 05a684b3be)
2003-05-08 05:10:44 +00:00
Andrew Bartlett
5f86a4a85f Always initialise this - it helps callers who use this in a loop...
Andrew Bartlett
(This used to be commit 97bc047434)
2003-05-07 23:09:18 +00:00
Andrew Bartlett
a0af88e8c1 Fix the spinning bug for 'net rpc user' as well - there are more errors in
this world than 'status more entires'...

Also move all the cases to 'NT_STATUS_EQUAL()' to test it.

Andrew Bartlett
(This used to be commit b4645bf066)
2003-05-07 22:56:02 +00:00
Jeremy Allison
243b831de6 SMB_QUERY_FILE_ALT_NAME_INFO and SMB_FILE_ALTERNATE_NAME_INFORMATION
are identical - noticed by "Dr. Tilo Levante" <tilo@levante.de>.
Jeremy.
(This used to be commit a635b6406a)
2003-05-07 22:19:56 +00:00
Jeremy Allison
2746a909b2 SMB_QUERY_FILE_ALT_NAME_INFO and SMB_FILE_ALTERNATE_NAME_INFORMATION
are identical - noticed by "Dr. Tilo Levante" <tilo@levante.de>.
Jeremy.
(This used to be commit f6d7c279bc)
2003-05-07 22:19:43 +00:00
Jeremy Allison
075695ee7f Fix irritating typo - non arg functions should be fn(void).
Jeremy.
(This used to be commit 395dfd196c)
2003-05-07 21:40:11 +00:00
Jeremy Allison
a262aa7329 Make fchown, fchmod conditional for systems that don't have them.
Jeremy.
(This used to be commit 4fe84f6173)
2003-05-07 18:28:26 +00:00
Jeremy Allison
fae80fe1a0 Make fchown, fchmod conditional for systems that don't have them.
Jeremy.
(This used to be commit cf78b1e7fe)
2003-05-07 18:28:24 +00:00
Andrew Bartlett
2752f4a533 SMB Signing with NTLMv2 works!
(well, under certain conditions :-)

There is no length limit on the size of the authentication response added
into the MD5 hash.  (We had previously limited this to lengths like 40, 44 or
64 in attempts to make sense of what the SNIA spec tells us).

Instead, the entire authentication response is added in.

Currently, this only works on a Win2k domain members with a Samba PDC,
becouse our NTLMv2 code currently fails against an Win2k PDC.

However, this splits the problem in half - particularly as the NTLMv2 format
is known, and even has an ethereal disector! (thanks tpot).

Andrew Bartlett
(This used to be commit 7645d3d28a)
2003-05-07 12:58:59 +00:00
Andrew Bartlett
3eeb40f9b5 Set our 'global sam name' in one place. For domain controllers, this is
lp_workgroup(), for all other server this is global_myname().

This is the name of the domain for accounts on *this* system, and getting
this wrong caused interesting bugs with 'take ownership' on member servers
and standalone servers at Snap.

(They lookup the username that they got, then convert that to a SID - but
becouse the domain out of the smbpasswd entry was wrong, we would fail the
lookup).

Andrew Bartlett
(This used to be commit 5fc78eba20)
2003-05-07 08:21:06 +00:00
Tim Potter
22fb803b39 Whoops - that wasn't a whitespace syncup after all.
(This used to be commit 42d0414ed2)
2003-05-07 05:52:44 +00:00
Jeremy Allison
819b48c4a9 Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>
Jeremy.
(This used to be commit 56fd842738)
2003-05-07 02:01:33 +00:00
Jeremy Allison
1af398b169 Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>
Jeremy.
(This used to be commit f219e8309c)
2003-05-07 02:00:58 +00:00
Martin Pool
b1f3d0e2c3 Merge from distcc:
Put in a prototype for dummy_snprintf() to quiet compiler warnings.

  Move #endif to make sure VA_COPY, LDOUBLE, etc are defined even if
  the C library has some snprintf functions already.
(This used to be commit c49cfe1677)
2003-05-07 01:18:06 +00:00
Jeremy Allison
6b4330235f We used to use the name "*",0x0 here, but some Windows
servers don't answer that name. However we *know* they
have the name workgroup#1b (as we just looked it up).
So do the node status request on this name instead.
Found at LBL labs.
Jeremy.
(This used to be commit 41e3abe8b8)
2003-05-07 01:00:36 +00:00
Jeremy Allison
5601a2b7cc We used to use the name "*",0x0 here, but some Windows
servers don't answer that name. However we *know* they
have the name workgroup#1b (as we just looked it up).
So do the node status request on this name instead.
Found at LBL labs.
Jeremy.
(This used to be commit c5b1654c28)
2003-05-07 01:00:12 +00:00
Jelmer Vernooij
078e66c8d2 Add metze's exit and idle event patch
(This used to be commit e599eba851)
2003-05-06 17:52:11 +00:00
Simo Sorce
c92b926ddf uff, forgot to put back this one :-/
(This used to be commit 8e1e47b960)
2003-05-06 14:02:34 +00:00
cvs2svn Import User
27610826ad This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 8bee59ffce) 2003-05-06 13:10:11 +00:00
Simo Sorce
9cd45eeaf9 sort out some include dependencies
split out privileges from rpc_lsa.h
(This used to be commit 37d7cc8162)
2003-05-06 13:10:10 +00:00
Simo Sorce
0c6cdfadfd add mapping.h here
(This used to be commit fb03fafed1)
2003-05-06 10:00:02 +00:00
Simo Sorce
7835af32ec restore structures from previous erroneous commit
(This used to be commit 58d284bd06)
2003-05-06 09:36:51 +00:00
Jelmer Vernooij
ecbd2b5d1e Remove unused variables
(This used to be commit 2f631769f8)
2003-05-06 02:35:33 +00:00
Jelmer Vernooij
06551c644c Patch from metze to add exit and interval events. Useful for modules
(This used to be commit 3033a63cef)
2003-05-06 02:34:59 +00:00
Tim Potter
45f8fd3fa9 There appears to be no reason why we have to execute the
initialisation code in winbindd_init_common() after the fork when
running in dual daemon mode.

The only tricky bit is we have to run a tdb_reopen_all() somewhere in
the child to avoid tdb corruption.

Fixed bug #60.
(This used to be commit 25e55aca0f)
2003-05-06 02:32:47 +00:00
Richard Sharpe
7cd3bdc784 Fix up some of the warnings that the build farm is finding ...
(This used to be commit 29d775fe68)
2003-05-05 22:52:45 +00:00
Richard Sharpe
5d653461e6 Syncronize head editreg.c with 3.0.0 ...
(This used to be commit 8257f537de)
2003-05-05 16:04:15 +00:00
Andrew Bartlett
9eccc216de We also get back the LM session key on pure 'NTLM' logins.
Andrew Bartlett
(This used to be commit 7342c70b4c)
2003-05-05 13:23:07 +00:00
Rafal Szczesniak
4905d39f4f Turn off using lsa_qos.
Rafal
(This used to be commit d03124fbf1)
2003-05-05 08:43:43 +00:00
Rafal Szczesniak
8be0f0d145 Turn off using lsa_qos in OpenPolicy call. This way we avoid annoying
debug msg while establishing trust and listing relations of Samba PDC.


Rafal
(This used to be commit 8681cbae0d)
2003-05-05 08:32:30 +00:00
Andrew Bartlett
89f6691cdc Add some comments.
(This used to be commit 855fab395f)
2003-05-05 06:33:58 +00:00
Tim Potter
60233cd356 Add a new entry to make check. If we have compiled python extensions,
run the pythoncheck.py test.  At the moment this just checks every
python extension can be imported sucessfully.
(This used to be commit 38dac4ca4e)
2003-05-05 06:22:36 +00:00
Tim Potter
da18088eea Fix for bug #60. Our autoconf code adds both libraries and linker
flags in the $LIBS make variable.  Separate the two so the python
extensions can build.
(This used to be commit 164ea38357)
2003-05-05 06:21:26 +00:00
Andrew Bartlett
423bd582f4 Allow the NTLMv2 functions to spit out both possible varients on the session
key, so we can test it in ntlm_auth.

I suspect the 'lm' version doesn't exist, but it's easy to change back.

Andrew Bartlett
(This used to be commit 5efd95622c)
2003-05-05 05:15:54 +00:00
Andrew Bartlett
0e1c8fa7c3 Add some more tests to the ntlm_auth diagnositics package.
Our NTLMv2 client code needs work, becouse we don't get the session key for
any of the NTLMv2 stuff...

Also test some of the more 'odd' auth cases - like putting the NT password
into the LM feild.

Clean up some static globals into static locals.

Andrew Bartlett
(This used to be commit 62f0acc991)
2003-05-05 05:01:59 +00:00
Tim Potter
59991233e1 Merge of backslash @LDAP_LIBS@ fix from HEAD.
(This used to be commit f4ea0cc17d)
2003-05-05 04:10:29 +00:00
Tim Potter
ddb870f36b A good reason to use make variables instead of autoconf substitutions
directly - fixed problem where the last line of the link command was
'\ @LDAP_LIBS@'.  If @LDAP_LIBS@ is zero then the backslash
incorrectly includes the next line of the Makefile in the current
target.

This should fix a bucketload of build farm failures.
(This used to be commit 895bef1a62)
2003-05-05 04:09:56 +00:00
Tim Potter
c724747e2d Fixed typo introduced when reverting patch from revision 1.19
(This used to be commit a102734263)
2003-05-05 03:34:19 +00:00
Tim Potter
ea3d32fe9c Fixed typo introduced in reverted patch from version 1.12.4.5
(This used to be commit 4fccc1f16d)
2003-05-05 03:31:50 +00:00
Tim Potter
c4c55a00db Fix some compiler warnings.
(This used to be commit 52d5ff7bda)
2003-05-05 02:47:41 +00:00
Tim Potter
4b8d28f832 AIX doesn't append $SHLIB_EXT to NSS libraries.
Also merged a little bit of abartlet's recent configure.in change of
duplicated IRIX stuff.
(This used to be commit d15406ad91)
2003-05-05 01:52:08 +00:00
Tim Potter
73a3105b57 AIX doesn't append $SHLIB_EXT to NSS libraries.
(This used to be commit af083d2760)
2003-05-05 01:40:10 +00:00
Simo Sorce
a5cc68290e move some things around
(This used to be commit a4fc9c3b2d)
2003-05-04 23:41:51 +00:00
Andrew Bartlett
6a19f354e5 Patch from Ken Cross to allow an ADS domain join with a username of the form
user@realm, where realm might not be the realm we are joining.

Andrew Bartlett
(This used to be commit 00e08efb5c)
2003-05-04 02:48:11 +00:00
Andrew Bartlett
8b69f16335 Add doco to our SMB signing code.
This should make it clearer what magic numbers refer to the magic numbers
in the CIFS spec, and what bits and peices are being appended into the MD5
calculation where.

Andrew Bartlett
(This used to be commit 7f1c271cfb)
2003-05-04 01:05:39 +00:00
Andrew Bartlett
15dec47c96 configure.in updates:
Now the IRIX and non-irix cases for one of these switch statements is the same,
eliminate the statement...

We now use autoconf > 2.50, so we can use some of it's features.

We also need to correctly include the magic for building vfs_fake_perms.
(This used to be commit a4ec8a6151)
2003-05-03 15:30:41 +00:00
cvs2svn Import User
d08844d97b This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f1e5990657) 2003-05-03 05:51:55 +00:00
Andrew Bartlett
24ee141805 Add a comment about the use of string functions in the modules code, and
add \n to the end of the non-dlopen case DEBUGs.

Andrew Bartlett
(This used to be commit ce4ff4cc8e)
2003-05-03 04:34:13 +00:00
Andrew Bartlett
4918bf199c Fix use of uninitialised value in TCONDEV test - found by sun1 on the build farm
(This used to be commit 0dfeaf4535)
2003-05-03 04:30:21 +00:00
Simo Sorce
8b232cbb3e fixes to *_util.c files
add winbindd_passdb backend
this makes it possible to have nua accounts on security = user servers to
show up in unic through nss_winbind.so

the problem is that we do not have group support, so nss group support is
not very good at this time (read: totally absent)

we NEED group support in passdb
(This used to be commit 921215cf4b)
2003-05-03 01:29:18 +00:00
Simo Sorce
8caaebf56e exclude tdbsam2.h generation until it will be used
(This used to be commit 28b73a3921)
2003-05-02 18:24:30 +00:00
Simo Sorce
7474488713 fix pam_smbpass
typos
(This used to be commit 7e28ee1cf8)
2003-05-02 17:44:59 +00:00
Simo Sorce
c11e23227c remove testing debug line
(This used to be commit 08d4c2fa85)
2003-05-02 17:31:30 +00:00
Volker Lendecke
bdf912f5a2 Now that multi-pdu schannel works and a but in the negotiator has been
fixed I would like to see this tested a bit more. Default the schannel
stuff to auto which means 'offer, but do not enforce'.

Volker
(This used to be commit 7a1b8409be)
2003-05-02 13:40:10 +00:00
Simo Sorce
e87f9a29b7 shouldn't wellknown group be well.. ..WKN_GRP ?
make a new sam_Account contain our domain by default, windows will complain
on logon otherwise.
fix stupid typo in idmap_util.c
(This used to be commit 21701876dc)
2003-05-02 08:03:25 +00:00
Jeremy Allison
a5e8ba3c76 Fix uninitialized blobs reported by Luke Howard.
Jeremy.
(This used to be commit e954ca2ce8)
2003-05-01 18:11:59 +00:00
Jeremy Allison
269a48fedc Fix uninitialized blobs reported by Luke Howard.
Jeremy.
(This used to be commit 8dcc008999)
2003-05-01 18:11:24 +00:00
Jeremy Allison
731eba7ded Fix for bugid 51 from Dragan Krnic.
Jeremy.
(This used to be commit aeba1fcab2)
2003-05-01 17:48:07 +00:00
Jeremy Allison
7ce38082f3 Fix for bugid 51 from Dragan Krnic.
Jeremy.
(This used to be commit a2af45154d)
2003-05-01 17:45:38 +00:00
Simo Sorce
e492cdb4e4 fix wrong debug messages in idmap_util.c
correctly handle allocated rids in tdbsam
(This used to be commit 7ae6162e1d)
2003-05-01 16:02:55 +00:00
Simo Sorce
6a10e99fb1 init wellknown in pdbedit too
add group mapping mappings to idmap at startup
(This used to be commit 62365023db)
2003-05-01 14:32:24 +00:00
Simo Sorce
7264b9df8f proper wellknown sids initialization at startup
(This used to be commit 568feee897)
2003-05-01 14:08:00 +00:00
cvs2svn Import User
67ce764d69 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit a1ffe2a29c) 2003-05-01 11:47:49 +00:00
Simo Sorce
75cace04fd *id_to_*id call reshape to return NTSTATUS errors
plus internal fixes
1st stage
(This used to be commit 6d036761e5)
2003-05-01 11:47:48 +00:00
Jelmer Vernooij
bac83636a5 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit a2c315dea6)
2003-05-01 11:02:54 +00:00
Jelmer Vernooij
ed454fe3d6 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit 908d839b77)
2003-05-01 11:02:26 +00:00
Andrew Bartlett
aa79f23d9b Turn down some DEBUG()s and remove some duplicate code spotted by dfenwick.
Andrew Bartlett
(This used to be commit 542a8b1817)
2003-05-01 02:51:49 +00:00
Jelmer Vernooij
7226d4698e Use ints for the version numbers in the smb_register_*() functions (patch by metze)
(This used to be commit 3895571eee)
2003-05-01 00:51:54 +00:00
Jelmer Vernooij
d2373e7dce Make the version numbers ints (patch from metze)
(This used to be commit dbe36b4c43)
2003-04-30 23:06:44 +00:00
Paul Green
5a61380820 Refactor existing sock_exec() and socketpair_tcp() functions into their own
source file. I will be making changes to sock_exec to work on VOS, which
has a blocking connect() call, but first I want to get it in its own source
file so that it can be called from a test program.
(This used to be commit 10bf65d335)
2003-04-30 17:48:46 +00:00
cvs2svn Import User
72e786496d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 7347331053) 2003-04-30 17:35:57 +00:00
Paul Green
4e2bd11d3e Refactor existing sock_exec() and socketpair_tcp() functions into their own
source file. I will be making changes to sock_exec to work on VOS, which
has a blocking connect() call, but first I want to get it in its own source
file so that it can be called from a test program.
(This used to be commit 2dd18ca0cf)
2003-04-30 17:35:56 +00:00
Simo Sorce
28cef867c7 correctly initiazlize idmap tdb when creationg new
few fixes to *id_to_*id functions, we don't set the mapping for algoritmic
RIDs, they are resolved in the classic way
eliminate getpw* calls from tdbsam
(This used to be commit 6a7689cf74)
2003-04-30 16:35:17 +00:00
Andrew Bartlett
c6d511d8dd Merge from HEAD - the usual popt-needs-static for Sun CC.
(This used to be commit 2fabc35676)
2003-04-30 14:25:13 +00:00
Andrew Bartlett
356d599662 Try to fix IRIX build - add quotes and never call libns_winbind by name - we
should only set that name once.
(This used to be commit 34f15bff6f)
2003-04-30 14:14:33 +00:00
Andrew Bartlett
24e663ab35 Trailing , is non-standard (warning from IRIX)
(This used to be commit 96134959d9)
2003-04-30 14:03:29 +00:00
Andrew Bartlett
90d17c04ca Fix for AIX - you can't qualify a return type as const, when it's not a
pointer.

(merge from HEAD).

Andrew Bartlett
(This used to be commit 9e3d0cd9de)
2003-04-30 14:01:16 +00:00
Andrew Bartlett
211939f3ab pam_smbpass will need at least IDMAP.
(This used to be commit b05fa6b90a)
2003-04-30 13:57:28 +00:00
Andrew Bartlett
d1607e1cdb Get pam_smbpass to compile again (it probably won't link or run, but at least
it compiles and lets the build farm get on it's way)
(This used to be commit 7498d69d9d)
2003-04-30 13:56:02 +00:00
Andrew Bartlett
e13d513739 Sun CC requires constant initialisers, so use a static here.
(a common bug with popt stuff, becouse it's fine with GCC).
(This used to be commit edbab685d1)
2003-04-30 13:22:02 +00:00
Simo Sorce
09391fc57d auto-init for utility functions
(This used to be commit db571a9fd7)
2003-04-30 00:44:45 +00:00
Simo Sorce
d57dc1b8b2 forgot to remove getpwnam
(This used to be commit 1915ab7b95)
2003-04-29 23:52:53 +00:00
Simo Sorce
a1eaa7d5e0 This is a nice rewrite:
SAM_ACCOUNT does not have anymore uid and gid fields
all the code that used them has been fixed to use the proper idmap calls

fix to idmap_tdb for first time idmap.tdb initialization.

auth_serversupplied_info structure has now an uid and gid field

few other fixes to make the system behave correctly with idmap

tested only with tdbsam, but smbpasswd and nisplus should be ok

have not tested ldap !
(This used to be commit 6a6f603246)
2003-04-29 22:06:16 +00:00
Gerald Carter
ada60ce8a2 smbgroupedit has been replaced by 'net groupmap'
remove related file.  Left in EHAD for reference (for now)
(This used to be commit 2e7537d8e2)
2003-04-29 15:32:14 +00:00