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
Andrew Tridgell
3d5d32826f installman needs to depend on installdirs, to fix parallel
build/install
(This used to be commit 8fa687701a)
2003-05-23 04:53:26 +00:00
Andrew Tridgell
5a92ce6b9b installman needs to depend on installdirs, to fix parallel
build/install
(This used to be commit f59a99d8ef)
2003-05-23 04:52:30 +00:00
Tim Potter
2cf5051500 Ignore *.po files.
(This used to be commit e90c5796d2)
2003-05-23 02:01:07 +00:00
Tim Potter
1f84a14b0b Bug 83: fixes for building when $srcdir != $builddir from David Lee
<t.d.lee@durham.ac.uk>
(This used to be commit e48a8b5e9c)
2003-05-23 01:59:43 +00:00
Jelmer Vernooij
19826aa7c1 Use -fPIC when compiling shared modules. Reported by Steve Langasek aka vorlon.
(This used to be commit 946192393d)
2003-05-22 21:46:22 +00:00
Jelmer Vernooij
1df21141e7 Compile shared modules with the -fPIC flag. Reported by Steve Langasek aka
vorlon.
(This used to be commit a5f165020a)
2003-05-22 21:02:25 +00:00
Jeremy Allison
67931d6026 Stat opens can have fsp->fd == -1 and will have a share entry. Ensure
that file_find_dif will find them. Fixes a core dump in smbd/open.c.
Jeremy.
(This used to be commit 0811acb957)
2003-05-22 20:31:37 +00:00
Jeremy Allison
f161839a74 Stat opens can have fsp->fd == -1 and will have a share entry. Ensure
that file_find_dif will find them. Fixes a core dump in smbd/open.c.
Jeremy.
(This used to be commit 0e2165630d)
2003-05-22 20:31:35 +00:00
Jeremy Allison
78a4f6fc4b More fixes for debug log to catch logic error.
Jeremy.
(This used to be commit 84a7714eba)
2003-05-22 18:56:51 +00:00
Jeremy Allison
de55b9ddb0 More fixes for debug log to catch logic error.
Jeremy.
(This used to be commit 0e2a47c1e6)
2003-05-22 18:56:48 +00:00
Jeremy Allison
4f7e6108bd Add more info to debug info...
Jeremy.
(This used to be commit 6d3b72b499)
2003-05-22 18:45:24 +00:00
Gerald Carter
79315aabf4 fixes bugs 85 & 99 (XP domain logons); don't enable the lsa_query_info2 unless we are trying to be an ADS DC
(This used to be commit 689576c242)
2003-05-22 17:27:13 +00:00
Gerald Carter
fc39529a01 merging minor change from SAMBA_3_0 about which pdb modules to build
(This used to be commit 461af038d0)
2003-05-22 17:24:33 +00:00
Gerald Carter
901346ef4d fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try to change a string that only differs in case
(This used to be commit 60c6bc9883)
2003-05-22 17:11:36 +00:00
Gerald Carter
52ae1c4b2d fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try to change a string that only differs in case
(This used to be commit 01ef083520)
2003-05-22 17:07:41 +00:00
Gerald Carter
91077a0618 fixes bugs 85 & 99 (XP domain logons); don't enable the lsa_query_info2 unless we are trying to be an ADS DC
(This used to be commit bf20976e5a)
2003-05-22 15:27:27 +00:00
Gerald Carter
8b0f689451 updating version
(This used to be commit b1eb0dd7e0)
2003-05-22 14:53:02 +00:00
Tim Potter
23d30cbf9f Merge of head(1) portability patch.
(This used to be commit 9192921c11)
2003-05-22 00:49:24 +00:00
Tim Potter
b176d4a4e5 head(1) portability patch from Guenther Deschner.
(This used to be commit caaf082a1f)
2003-05-22 00:48:51 +00:00
Gerald Carter
49237d9955 fix for UNICODE plaintext passwords (bug #59) and fix smbclient to send the unicode plain text password if negoitated
(This used to be commit 207186e1c8)
2003-05-21 16:13:38 +00:00
Gerald Carter
c52ee09afe fix for UNICODE plaintext passwords (bug #59) and fix smbclient to send the unicode plain text password if negoitated
(This used to be commit e7d635af80)
2003-05-21 16:12:07 +00:00
Andrew Tridgell
c9d0ee977c merge LANMAN1/LANMAN2.1 fixes from head
(This used to be commit 73c686ab77)
2003-05-21 05:20:54 +00:00
Andrew Tridgell
f60d90ff62 we weren't filling in the keylength in LANMAN1 and LANMAN2.1 negprot
reply. Seems to have been broken for a long time!
(This used to be commit a16415a6c9)
2003-05-21 05:18:23 +00:00
Gerald Carter
1e8f725f7c really make sure to include the version in the lanman string; tested spnego using smbclient
(This used to be commit a032c38ed4)
2003-05-20 22:55:17 +00:00
Gerald Carter
273dbfd9c6 really make sure to include the version in the lanman string; tested spnego using smbclient
(This used to be commit d7ca85613b)
2003-05-20 22:54:58 +00:00
Gerald Carter
b00c2f5ac8 better handling of --with-expsam (includes pdb_nisplussam now)
(This used to be commit 2c19ba6104)
2003-05-20 21:20:03 +00:00
Gerald Carter
6c66c80132 better handling of --with-expsam (includes pdb_nisplussam now)
(This used to be commit 6cb3d3cc60)
2003-05-20 21:15:49 +00:00
Gerald Carter
b5b71336ac remove USE_SMBPASS_DB
(This used to be commit dd45758813)
2003-05-20 18:30:58 +00:00
Gerald Carter
931dc9d25a remove WITH_TDB_SAM & USE_SMBPASS_DB
(This used to be commit 1f98ced316)
2003-05-20 18:30:37 +00:00
Gerald Carter
5989937dba remove WITH_TDB_SAM
(This used to be commit ee63331256)
2003-05-20 18:29:13 +00:00
Gerald Carter
cf40d63745 wrap pdb_[nisplussam|xml|mysql] in --with-expsam option & some formatting fixes
(This used to be commit 0fc3fc0b7c)
2003-05-20 18:29:04 +00:00
Gerald Carter
6eaf8a3775 wrap pdb_[nisplussam|xml|mysql] in --with-expsam option & some formatting fixes
(This used to be commit 014350196d)
2003-05-20 18:26:06 +00:00
Jim McDonough
0de9034b4f Fix bug #95: net did not build when ldap was installed, but --without-ads
was specified.
(This used to be commit 17b0acff8a)
2003-05-20 14:55:01 +00:00
Jim McDonough
a3c5277a93 Fix bug #96: Use DNS decompression to properly parse cldap netlogon
packets, otherwise repeated components will not decode correctly.

Thanks to aliguori@us.ibm.com for the fix, and lukeh@padl.com for pointing
us to the right docs.
(This used to be commit a8d5d74cf8)
2003-05-20 13:51:43 +00:00
Jim McDonough
40c53cae2b Fix bug #98: DNS compression is required for proper building of the
netlogon for ads packet.  repeated DNS components will not be properly
encoded otherwise.
(This used to be commit 1e85a9ed8d)
2003-05-20 13:49:53 +00:00
Steve French
74f994b986 Fix Linux cifs vfs mount helper parsing of slashes
(This used to be commit 639a2a785a)
2003-05-20 04:28:29 +00:00
Jeremy Allison
8e48665943 FreeBSD5 ACL fix.
Jeremy.
(This used to be commit 69a73a8702)
2003-05-19 18:03:12 +00:00
Jeremy Allison
15c003782b FreeBSD5 ACL fix.
Jeremy.
(This used to be commit 6669c38ed0)
2003-05-19 18:00:44 +00:00
Alexander Bokovoy
3a12379a84 Fix macros for next and opaque quota ops. Spotted by metze
(This used to be commit 46e6621b2e)
2003-05-19 09:09:37 +00:00
Tim Potter
6c1e3a58e4 Updates for AIX winbind client from Stephen Roylance.
(This used to be commit c4dd5a4203)
2003-05-19 00:45:33 +00:00
Tim Potter
2927ab13da Updates for AIX winbind client from Stephen Roylance.
(This used to be commit 3983f3a1f3)
2003-05-19 00:42:28 +00:00
Simo Sorce
a670285ded port fixes from 3.0
(This used to be commit 0d098df8b5)
2003-05-18 09:06:09 +00:00
Jeremy Allison
1854e7b8e5 Cope with cumulative permissions sets. This code is #ifdef'ed out at the
moment as I don't think cumulative permission sets make sense in POSIX even
though that's the way Windows works....
Jeremy.
(This used to be commit 6ddd5b6ca7)
2003-05-17 00:46:28 +00:00
Jeremy Allison
271ce52dbe Cope with cumulative permissions sets. This code is #ifdef'ed out at the
moment as I don't think cumulative permission sets make sense in POSIX even
though that's the way Windows works....
Jeremy.
(This used to be commit 34b170a82c)
2003-05-17 00:46:26 +00:00
Jeremy Allison
3ebfe59d0f Patch from "Esh, Andrew" <Andrew_Esh@adaptec.com> to fix core dump bug
in add groupmem code.
Jeremy.
(This used to be commit f41eb9ce9a)
2003-05-16 18:30:22 +00:00
Jeremy Allison
de7cd07a29 Patch from "Esh, Andrew" <Andrew_Esh@adaptec.com> to fix core dump bug
in add groupmem code.
Jeremy.
(This used to be commit 7e7077e9e3)
2003-05-16 18:30:19 +00:00
Andrew Bartlett
90d24ee9a6 Well spotted typo by Marco Berger <MARCOB@voelcker.com>
Andrew Bartlett
(This used to be commit f16b0e025e)
2003-05-16 14:15:09 +00:00
Andrew Bartlett
a9336d8411 David Lee <t.d.lee@durham.ac.uk> provides some corrections to the comments
in the UTMP code.

Andrew Bartlett
(This used to be commit f0cff106cb)
2003-05-16 12:15:04 +00:00
Simo Sorce
75c14a4ee8 another bugfix from Alex Deiter <tiamat@komi.mts.ru>
thanks
(This used to be commit 29dc40639f)
2003-05-16 10:48:58 +00:00
Simo Sorce
10717c720d Fix from Alex Deiter <tiamat@komi.mts.ru>
Reversed check.
(This used to be commit 542ee1d3d6)
2003-05-16 07:59:52 +00:00
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