1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

9842 Commits

Author SHA1 Message Date
Andrew Bartlett
4e73790e3a Try to compile as much as possible with only ldap, but not kerberos.
(This used to be commit 9615ab10c006d8027f6a8b7dd3770eb77304dbdc)
2002-09-28 14:42:32 +00:00
Andrew Bartlett
b1361525c6 Forgot to commit this in the patch changing back the create_user API.
(This used to be commit cf249f5b222312bb05fb8ab53413d160149f7477)
2002-09-28 14:41:12 +00:00
Andrew Bartlett
120e385417 Back out one of the API changes, now I recall how it was meant to work.
(New accounts are created on thier internal talloc context, not a supplied one
and not the one beloning to the SAM)

Also actaully add the sam_skel to the tree.

I need to work out with Jelmer an appropriate way to ensure we still have an
example external build, and if this should move back out again.

Andrew Bartlett
(This used to be commit dc8b0d23e088d1e7f7fbc6ab0423eaa82f14e258)
2002-09-28 14:26:19 +00:00
Andrew Bartlett
ac625a8235 Second stab at Volker's 'make shadow passwords work' patch.
Basicly, the password and the salt must be taken from the same place in both
passwd and shadow based systems.  Taking salt from one, and password from the
other just doesn't work.

So pull them from passwd, then overwrite them if need be.

When modifying this file, watch the #ifdef hell - as vl found out, some
variables are globals - but only with #ifndef WITH_PAM, and the code jumps all
over the place with the password cracker.

Getting double-reviews of any change to this file highly advised, it is one of
our most system-specifc areas of code.

(So now I get to take the blame for this one... :-)

Andrew Bartlett
(This used to be commit f39f167900db3f06ec3c52c3ddf61e8bf3d57f56)
2002-09-28 13:29:51 +00:00
Andrew Bartlett
8b197158c9 Add the beginings of sam_ads to the tree.
This module, primarilly the work of "Stefan (metze) Metzmacher"
<metze@metzemix.de>, uses the Active Directory schema to store the
user/group/other information.  I've been testing it against a real AD server,
and it is intended to work with OpenLDAP as well.

I've moved a few functions around in our other libads code, which has made it
easier to tap into that existing code.

Also, I've made some changes to the SAM interface, I hope there are not too
many objections...   To ensure we don't get silly bugs in the skel module, it
is now in the default compile.  This way you should not forget to update it :-)

Andrew Bartlett
(This used to be commit 24fb0cde2f0b657df1c99474cd694438c94a566e)
2002-09-28 12:27:04 +00:00
Volker Lendecke
9e0bd9be01 Thanks to abartlet I looked at that function a bit closer. What did
the first cli_push_string do? I suspect that it's a leftover from times
when the password length was needed at some point.

Volker
(This used to be commit df906c156aea46524dedc28ee54f4e87711c7160)
2002-09-28 12:14:17 +00:00
Andrew Bartlett
0a23b0b4d5 Add const.
(This used to be commit f7dd66e88dba947a167d9a14c96810854dfc5c9d)
2002-09-28 12:11:19 +00:00
Richard Sharpe
6fa3f56e0a Commit a fix to smbclient so that it will connect to EMCs and NetApp's machines.
(This used to be commit 1e4ac9615d26bfbf90e3a45f088564f448f689ce)
2002-09-28 03:38:37 +00:00
Andrew Bartlett
bc828246db This needs to be #ifdef HAVE_LDAP.
(This used to be commit 2b54a2fc2c85ea139e2acdbbc2f14b969c0c6315)
2002-09-28 00:47:06 +00:00
Andrew Bartlett
3cfd42e83b Add const.
(This used to be commit 0f5d18626bebaa0621ee703ea2cc8bf47e14ea3e)
2002-09-28 00:12:49 +00:00
Andrew Bartlett
465d93b1c6 Back our volker's patch as was breaking the build.
Volker, I would like to understand what you are trying to do here...

I'll trust that it's broken (this code is certainly not well tested) but I do
want to keep a close eye on the fixes...

Andrew Bartlett
(This used to be commit 4b72f84cf9bc3f7583318d5dff97257f9dc5b87f)
2002-09-27 23:56:20 +00:00
Jeremy Allison
543edfbeab It turns out that Windows allows delete printer on a handle
opened by an admin user, then used on a pipe handle created
by an anonymous user..... but they're working on security.... riiight !
Jeremy.
(This used to be commit 322d8b4c83439261cfd2ff79b557bddb1e784660)
2002-09-27 22:51:59 +00:00
Jeremy Allison
3c7334c1b5 Check for security on delete printer was reversed...
Jeremy.
(This used to be commit 0d27cc909b4489b54e57481bd8a9494fb077dc3d)
2002-09-27 22:08:25 +00:00
Jeremy Allison
1ac50efaf7 HEAD and APP-HEAD spoolss parsing was out of sync. This MUST NOT HAPPEN !
Jeremy.
(This used to be commit e42b76337b9a01fee84bc95d6899a724b2fdab29)
2002-09-27 18:49:35 +00:00
Volker Lendecke
208b4be14b Touching somebody else's code again... Sorry, Richard.
smbclient would announce that it can send UNICODE, but would send the
plain text password in ASCII. This confused Samba HEAD somewhat. This
change has been tested against Samba HEAD of today and Samba 2.2.1a. I
do not have any other servers that do plain text passwords. Anybody?

Volker
(This used to be commit c7de62d839634a85295d1a0ef5a48270ef30aa93)
2002-09-27 16:51:22 +00:00
Jelmer Vernooij
789ccf3094 Apply Vance Lankhaars' cifs2002 documentation patch - mostly grammar and
English typo fixes and updates of documentation
(This used to be commit bba2ee620a286dcc7fcd509c8954227e203274a1)
2002-09-27 16:45:57 +00:00
Volker Lendecke
086dcdca76 Sorry to touch such an internal function. But I was quite surprised that
'security = user', 'encrypt passwords = no' did not work anymore.
This is on quite a standard SuSE 7.3, ./configure.developer --with-tdbsam.
I can provide a config.log / config.h on demand.

Please re-check for consequences, I don't really oversee that file.

Thanks,

Volker
(This used to be commit ba754b57ddb78dadedcb7b5877cbee5bab08181e)
2002-09-27 16:20:09 +00:00
Andrew Bartlett
7e4afe5381 Move a number of ADS related functions out into utility libs, so that things
like metze's sam_ads can also use them.

Also add error checking etc to a few more functions.

Andrew Bartlett
(This used to be commit c864edf4fbf8a6c37888a14b861d7c12cf503d4f)
2002-09-27 12:23:47 +00:00
Volker Lendecke
dc262e3f39 An example of a group creation command that can handle failures
of groupadd.

Volker
(This used to be commit 3f78923a6feefffae6203d27a765b2a8cf3c5c24)
2002-09-27 09:47:02 +00:00
Volker Lendecke
e9878f0bbe Do not update manpages directly...
(This used to be commit 685387b0109e880e30191fbea0aad1e5c677273a)
2002-09-27 07:02:43 +00:00
Andrew Bartlett
ccaba8c7db Doco patch from metze. This reformats the 'ldap ssl' docs, and add doco for
the new 'ldap passwd sync' option.

Andrew Bartlett
(This used to be commit 4d20cf56f2fbe60f2dfa2ae62de1f132f24348aa)
2002-09-27 06:45:23 +00:00
Andrew Bartlett
5f662896aa Vance picked up a pile of typos etc at the CIFS confernce, and finally got them
off his laptop :-)

Andrew Bartlett
(This used to be commit df8f0338fae01e5edc176708c2b798c67c2e8c36)
2002-09-27 05:29:43 +00:00
Andrew Bartlett
d95e86b8b9 Minor updates:
Add const to some more functions, and reintroduce 'net rpc join oldstyle' as
*only* trying an old-style join.

This means that we can rely on it not prompting for a password on the build
farm.

Andrew Bartlett
(This used to be commit 31bdbeef0ea6f30247cd3b30cfea57b34102abe6)
2002-09-27 04:33:58 +00:00
Andrew Bartlett
55b6cebbd4 Some small cleanups to the libads code (mainly error checking), and give a
sane prototype for the push_utf8_allocate code.

Andrew Bartlett
(This used to be commit ce00a3238ed8a82639c4d0ee3e960f7000b1a7b0)
2002-09-27 03:05:20 +00:00
Andrew Bartlett
af8b346677 I missed committing this - all updates to configure.in adding --with-foo
options need a matching entry in acconfig.h to actually do anything...

Andrew Bartlett
(This used to be commit 4636809153987f03b14a27dba175cb1511c2d460)
2002-09-27 02:13:07 +00:00
Andrew Bartlett
ac50942927 Fix typo
(This used to be commit 42c7ecd3d5dc5eb8ff690635946a403a82ebb270)
2002-09-27 02:11:54 +00:00
Andrew Bartlett
a5731907d2 When compiled --with-ldapsam, make ldapsam the default passdb backend.
This is to allow painless upgrades from 2.2, and so people don't get a shock
when they follow old docs.

If ldap has been detected on the system, ldapsam is always available, just not
the default.

Andrew Bartlett
(This used to be commit 0a6a0c88d0972fcea4aead7115929f96c0d23cbc)
2002-09-27 02:09:57 +00:00
Andrew Bartlett
9e7a6d6b8b Readd the 2.2 --with-ldapsam paramaters so as to allow a smooth upgrade path to
a 3.0 based PDC.

Change defaults to use SSL, so that this also matches.

Andrew Bartlett
(This used to be commit 36c2a3820faa1d90cd331881720be0e61ab93460)
2002-09-27 01:02:37 +00:00
Jeremy Allison
c60f6f066e Make explicit the difference between a tdb key with no data attached, and
a non existent entry. Stop a malloc(0) being called in the first case.
Jeremy.
(This used to be commit ece9507ec3d363fccf56b000ad9758780a9b3fb4)
2002-09-26 21:00:25 +00:00
Gerald Carter
996fc28248 tagging version as post3.0-HEAD to differentiate from the SAMBA_3_0
branch.
(This used to be commit 0962a2f74f89b684a5f333126fed2b6a7fc0b454)
2002-09-26 20:39:53 +00:00
Gerald Carter
0923e13b0f add -r to usage output
(This used to be commit a6ec9af7e38b1b937eba7003f130d662d5bde035)
2002-09-26 20:38:20 +00:00
Samba Release Account
e8db73d3ad preparing for release of 3.0alpha20
(This used to be commit ba8b6c8e31ad5f15a0cfa9d28d9b8692c3473a42)
2002-09-26 19:45:29 +00:00
Gerald Carter
17b074ca92 sync with SAMBA_3_0
(This used to be commit 284c515dbd36d49081c1cdf9b2b9a60bf7a22ae4)
2002-09-26 18:57:58 +00:00
Jelmer Vernooij
6fa655c039 Fix segfault in sam_context_enum_domains - reported by Kai
(This used to be commit 1430473d3fdcc8e711fe483b84dfeefa6bd54905)
2002-09-26 15:20:11 +00:00
Jelmer Vernooij
30b24caae9 Don't define PASS_MUST_CHANGE_AT_NEXT_LOGON twice..
(This used to be commit cae3705b9a03e36137439e24667dcf2e5e9643fc)
2002-09-26 15:11:47 +00:00
Jelmer Vernooij
791d9e8fac Change pdb_xml functions to return NTSTATUS
(This used to be commit 834fcd23959ed202a84069bf19390103f563540c)
2002-09-26 15:03:26 +00:00
Jelmer Vernooij
f90e9ae244 Change pdb_mysql function to return NTSTATUS
(This used to be commit fa056769a08c93f086f05baf9095ee93217f92f1)
2002-09-26 14:52:54 +00:00
Jelmer Vernooij
2ef81d7517 Make functions return NTSTATUS instead of BOOL
(This used to be commit 6347d40eff03ad780446bdae0f1dfe0bc9edf824)
2002-09-26 14:29:09 +00:00
Volker Lendecke
1de972299f Add -r parameter to smbgroupedit. With -r you can manually choose
a rid.

Volker
(This used to be commit 11ec785f3f43b277ae3f28b38865f4de972495bc)
2002-09-26 14:01:39 +00:00
Andrew Bartlett
a5c8985215 Patch from "Kai Krueger" <kai@kruegernetz.de> to get some more of our access
control bits right on the SAMR pipe.

Andrew Bartlett
(This used to be commit e87948c777b59592b130da081ef5d25600455d29)
2002-09-26 13:31:49 +00:00
Simo Sorce
fc4100eabe forgot include file, sorry
(This used to be commit 67d600ed8ed1cdd25503fdb2299bdfa93befee1f)
2002-09-26 10:31:51 +00:00
Andrew Bartlett
ad514000db Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*
better job of working with usrmgr.   Previously we were blanking out entires,
and all sort of mischif.

The new patch (which I've now had a chance to test/modify) also takes care not
to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store
\\server\user back) and to correctly notice 'not set' compared to 'null string'
etc.

Andrew Bartlett
(This used to be commit ab878b6cc4132594fc33f78aeebf0d8b7266c150)
2002-09-26 10:25:34 +00:00
Simo Sorce
9e70b39ab2 move all the passdb internal interface to NTSTATUS
only the interface has been fully moved to NTSTATUS
not all the plugins make full use of it, but have been all converted.

My testings passed completely, however a bit of more testing is welcome

Simo.
(This used to be commit 102a26e06591928a03b49cd312a65811ed46314f)
2002-09-26 09:50:53 +00:00
Jelmer Vernooij
2c33710351 notify user when no {domains,accounts} were found
(This used to be commit ee3b497962a28c7c58e866b8536b1d2ae6f9b23a)
2002-09-25 19:33:04 +00:00
Jelmer Vernooij
07d7643a6e Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c
(This used to be commit 81156d6556dab2ea23dea69da6940a0482d79d9b)
2002-09-25 17:10:58 +00:00
Jelmer Vernooij
956767fdc4 add samtest commands:
- show_domain
 - context
(This used to be commit e969b1897269ebd27650c2192cd19ebda47e042e)
2002-09-25 15:54:40 +00:00
Gerald Carter
b55a4ca644 fix getpass replacement check (i thought I fixed this a few days
ago....)
(This used to be commit 1b55965f12dc2ede46ca2dbc82acbf56b7e33e2e)
2002-09-25 15:46:49 +00:00
Andrew Bartlett
1f5a153a6f Make it clear what this if statement applies to, and what it doesn't
(This used to be commit 6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d)
2002-09-25 14:18:11 +00:00
Jelmer Vernooij
284dd066a8 remove extern for AllowDebugChange since we don't use it
(This used to be commit 70d9b71ceaeba95712fa61e601376ff5cc8e7714)
2002-09-25 12:59:47 +00:00
Andrew Bartlett
d7ffd7a40a Fix the circular dependency that was preventing 'domain master = auto' (the
default) from working.

Andrew Bartlett
(This used to be commit 25950dbb3272949a235bed936c7d7b1d23f15fac)
2002-09-25 12:32:17 +00:00