1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

9174 Commits

Author SHA1 Message Date
Jim McDonough
ec7927a144 Fix NTLMSSP challenge command and auth response. We can now service joins
from win2k AND still use SPNEGO (provided you don't build with kerberos...I
still have to fix that, as we are not properly falling back).
(This used to be commit 1f9b3d46c7c99e84b2983220f79613b7420c5ced)
2002-08-15 12:18:25 +00:00
Tim Potter
702687a3a4 The unknown_0 field in a CREATE_USER2 reply is the access granted.
(This used to be commit 8bca3085836255536794444248e7ff3a2460c045)
2002-08-15 02:26:37 +00:00
Gerald Carter
b28b28ee34 added comment about a new specversion seen from client.
Device mode size is still the same though.




jerry
(This used to be commit fb822e97cb832361062fbb2aa239d949cc83efed)
2002-08-14 10:21:53 +00:00
Gerald Carter
093428852d unresolved symbols fix for pam_smbpass from Steve L.
(This used to be commit 27618a5ca271aef4d5f2f9180729c7d09a46d587)
2002-08-14 10:20:51 +00:00
Jim McDonough
f3a15363d8 Use byteorder.h macros
(This used to be commit eb9004efc3580799063009a8298c35cbc420626f)
2002-08-12 16:39:10 +00:00
Jeremy Allison
cebad9a48d Bugfix for problem pointed out by Sean Trace <Sean.Trace@aveva.com>. We can't
check for POSIX errors in the blocking lock code as we may have never made
a POSIX call (could have denied lock before POSIX checked).
Jeremy.
(This used to be commit 8403253f277299f566f2931fdec53b6e4ece376e)
2002-08-12 16:20:54 +00:00
Jim McDonough
3e5939ccd5 Update secrets_fetch_domain_guid to generate and store it if it doesn't exist.
Only does it for PDCs.
(This used to be commit 3543f92c39a80c8b6eb7ca3188b87f0f15896f33)
2002-08-12 13:55:31 +00:00
Jim McDonough
a40116204d Allow ADS PDC to exist
(This used to be commit e6ceb3482340e06d8a0a0963c6df6cf54090e5c3)
2002-08-12 13:54:42 +00:00
Jim McDonough
a9aa9bd7fe Add lib/util_uuid.c to build.
(This used to be commit ab0e863fcc4d8fc18291f04bedfd0dd52730d833)
2002-08-12 13:54:18 +00:00
Jim McDonough
d8d1d65958 Code to generate uuids for ADS setups. Uses our random generator but
conforms to standard OSF/DCE uuid format.
(This used to be commit 3b50c3b8cd86ff9a12a6e22ca3b3e904671be547)
2002-08-12 13:48:19 +00:00
Jim McDonough
28bf5e5f2d Add lsaqueryinfo2, but keep under "lsaquery" command. It will autoselect
which lsaqueryinfo to do based in infoclass.  Currently 12 is the only one
that causes a queryinfo2.
(This used to be commit f4ec2d52a7b093da701d68906cce6de197f182be)
2002-08-12 13:41:52 +00:00
Jim McDonough
ae6cb0fb31 Add lsa 0x2e (queryinfo2) client side
(This used to be commit c3b05b21a0340d8ff02a79401399e3d43d9e759a)
2002-08-12 13:40:59 +00:00
Shirish Kalele
341e3009a0 Add RESOLVE_DFSPATH to mkdir operations in HEAD.
(This used to be commit cbb6e2fbdb42964107cf033c787a32cedd46e5d8)
2002-08-12 13:35:17 +00:00
Jim McDonough
b3d49538fd Use samr connect4, then fall back to samr connect if it fails. This is
what 2k does.
(This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)
2002-08-12 08:26:28 +00:00
Jim McDonough
4a822be1d3 Add client side support for samr connect4 (0x3e). Seems to have one
additional parm compared to samr connect, but I've only seen 0x00000002
in that field...
(This used to be commit ed2370b91f7f6a36efdf6b65340a5b29a26e7e7a)
2002-08-12 08:25:02 +00:00
Tim Potter
3773419cdf Updated smbcontrol manpage for new printnotify commands.
Jerry, what's the latest on rebuilding doco from source?  I've no idea
whether this actually compiles or not.
(This used to be commit 6a4202a105d36f7d368e6a1d524314ea348be2a9)
2002-08-11 19:52:47 +00:00
Tim Potter
60444c3383 Merge some usage info from APPLIANCE_HEAD.
(This used to be commit aa93db5abed75b5c9a032a080c07473fafa53a43)
2002-08-11 19:23:09 +00:00
Tim Potter
d8d0a4e909 Merge of case fixes from APPLIANCE_HEAD.
(This used to be commit f8072d964f527dcb9b520ec06c3522524d47644f)
2002-08-11 18:19:03 +00:00
Jelmer Vernooij
36d7d26275 Add indent argument to put function name and type on same line -
for satisfying the autoprototyper and abartlet
(This used to be commit c03d8bc24dd45ac615481a82b7ad9ad7fb8b5ed1)
2002-08-11 08:15:49 +00:00
Jelmer Vernooij
e598f1332e Update CodingSuggestions to include 'indent' arguments for the samba coding
style
(This used to be commit 5f2c2a114b9d3739381e4ad683413a7db0187999)
2002-08-11 08:06:14 +00:00
Andrew Bartlett
dd5615c042 Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions.

Andrew Bartlett
(This used to be commit f393de2310e997d05674eb7f1268655373e03647)
2002-08-11 02:30:35 +00:00
Andrew Bartlett
6ddba1e99b Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
(This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)
2002-08-10 23:20:04 +00:00
Jelmer Vernooij
3fce46ac7d Adding pdb_xml and pdb_mysql passdb modules.
Added some consts to pdb_test to follow pdb_methods struct more strictly
(This used to be commit bb1c4501992650a5e26b4bc743aeae551852becc)
2002-08-10 20:14:32 +00:00
Gerald Carter
6633633f7d one line merge from APP_HEAD
(This used to be commit b6b64d06a630f741c7ffbec99b71d34496159fa7)
2002-08-08 22:17:42 +00:00
Gerald Carter
1492a040ee delete printer driver fix from APP_HEAD
(This used to be commit 9c6b930068d1e762fad78c9e36792764c280b85c)
2002-08-08 22:14:42 +00:00
Gerald Carter
14d385439d printing change notification merge from APPLIANCE_HEAD
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-08-08 20:54:37 +00:00
Andrew Bartlett
4267fcccda Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
(This used to be commit 35eefe7a19b2b684d3ca05a665e9c13e9d17acc3)
2002-08-08 06:44:03 +00:00
Tim Potter
335aa54b46 Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-08-08 04:58:19 +00:00
Jim McDonough
16c172c3a4 Hmm, had too many objects added last time in the nmbd changes. Don't
need all of them.  Hopefully this will fix a few builds.
(This used to be commit 521eed1277956b0ebc47c3312edf57d386e026e6)
2002-08-07 12:17:35 +00:00
Andrew Bartlett
ab0ca0f0b2 Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
(This used to be commit d5f2e33b34fe0e67153894b6bf582b7eaca40e7f)
2002-08-07 09:51:59 +00:00
Andrew Bartlett
7a0af712b0 Add 'const' to the function prototypes to match the recent commit.
(This used to be commit 0118e459b603a991f23d48cfd7f5e68c4374f950)
2002-08-07 07:46:01 +00:00
Andrew Bartlett
39d575d68e Add some more const :-)
This also makes it a easier to see which paramaters are 'in', and which are
'out'.

Andrew Bartlett
(This used to be commit 122cf648d7f364c68ecb7a576a42e94a954e9e56)
2002-08-07 07:28:24 +00:00
Andrew Bartlett
a51897cf9b Add const to a pile of const to *DOM_SID paramaters.
Andrew Bartlett
(This used to be commit fd0ebf976eb6e5fc25bc75ff471c69c3f3761e32)
2002-08-07 07:22:43 +00:00
Jim McDonough
6f1245822e Ooops...forgot to put this in with the new nmbd samlogon response code.
THis should fix the build.
(This used to be commit ef984b99614c07ef5934849a9ad85190b636d421)
2002-08-06 19:52:43 +00:00
Jim McDonough
6cfff280d8 Add AD version of samlogon replies for getdc. ATM it will only function
if you have an ADS DC.
(This used to be commit 059a352ebb7c7286d205bc86a92f5fd26ab1ff8e)
2002-08-06 18:16:28 +00:00
Jim McDonough
5e42dcfe46 Add SAMR 0x3e, which is samr_connect4. Seems to be the same as our
existing connect (which I've been told is really connect2), with one
extra dword.  We've only seen 0x00000002 there...
(This used to be commit 266344634944dff30f56453f9d86c490e7ac7a55)
2002-08-06 18:02:56 +00:00
Andrew Bartlett
f23d88ab78 Try to bind with LDAPv3 if possible.
Andrew Bartlett
(This used to be commit 0e420878f26bdd19b5defb78a5fe4c31662ec941)
2002-08-06 11:48:17 +00:00
Andrew Bartlett
9542ef87c0 Back out idra's change (at his request) - the values in the tdb *should* be
upper cased already.

However, if you created your registry tdb in the very early versions of jerry's
patch, you could find that usrmgr doesn't function.  Simply delete the
registry.tdb, it will be recreated on startup.

Andrew Bartlett
(This used to be commit 17136a88c326bf338f948a67c92bb048c5a148af)
2002-08-06 10:10:54 +00:00
Andrew Tridgell
db20fa5d4e fixed 'net ads chostpass' for new ads structures
(This used to be commit 3b0e60e522b669bad77e70d9c6f484a08ff84612)
2002-08-06 10:01:38 +00:00
Andrew Tridgell
4361b5cea5 when using netbios lookup methods make sure we try any BDCs even if
we get a response from WINS for a PDC, if the PDC isn't responding.
(This used to be commit 57916316ffc70b0b6659f3ad9d14aad41fad4c71)
2002-08-06 05:11:57 +00:00
Andrew Tridgell
74c8441e9d fixed a memory corruption bug in ads_try_dns()
(This used to be commit 2ee0abb50f25e5a4529d8c9409c979a7a00e5984)
2002-08-06 03:26:58 +00:00
Tim Potter
269c713edf Compile fix for new cli_lsa_enum_trust_dom() argument list.
(This used to be commit 2f46bdeb4fa1d32fe948af5d7fa80480ff2d2c86)
2002-08-06 01:07:07 +00:00
Andrew Tridgell
4da476001e fixed a memory corruption bug in the wins code
(This used to be commit 3f6ca04003172c22d02111f2170ad60f0d7936d9)
2002-08-06 00:56:39 +00:00
Andrew Tridgell
cded51d936 added 'net rpc testjoin' and 'net ads testjoin' commands
unfortuately we don't seem to be able to auto-test the ADS join due to
a rather nasty property of the GSSAPI library.
(This used to be commit 87c34a974a91e940bd26078a68dd84f4341d6913)
2002-08-05 14:11:50 +00:00
Tim Potter
ff2132e1b3 Spelling fix.
(This used to be commit 28ba237a9e02e284fb541562270db758612e425a)
2002-08-05 06:28:58 +00:00
Andrew Tridgell
e04c25b406 fixed wbinfo -t for netbiosless domains
(This used to be commit 68e70b000b273ba72206c87ad1efd6efc2c7c487)
2002-08-05 05:04:13 +00:00
Andrew Bartlett
b0565dac76 I must have missed this when I was adding 'const' to these earlier...
Andrew Bartlett
(This used to be commit ce6c8a647ca56dcbb60ff898d77c2df297c1fe79)
2002-08-05 03:43:26 +00:00
Andrew Bartlett
b745d8b1cd Try to make this easier to debug - display the username that failed.
Andrew Bartlett
(This used to be commit 8405bccd4e7a5315e58890ffa5d481031636f88a)
2002-08-05 03:27:04 +00:00
Andrew Tridgell
ab9ff0fa73 This fixes a number of ADS problems, particularly with netbiosless
setups.

- split up the ads structure into logical pieces. This makes it much
  easier to keep things like the authentication realm and the server
  realm separate (they can be different).

- allow ads callers to specify that no sasl bind should be performed
(used by "net ads info" for example)

- fix an error with handing ADS_ERROR_SYSTEM() when errno is 0

- completely rewrote the code for finding the LDAP server. Now try DNS
  methods first, and try all DNS servers returned from the SRV DNS
  query, sorted by closeness to our interfaces (using the same sort code
  as we use in replies from WINS servers). This allows us to cope with
  ADS DCs that are down, and ensures we don't pick one that is on the
  other side of the country unless absolutely necessary.

- recognise dnsRecords as binary when displaying them

- cope with the realm not being configured in smb.conf (work it out
  from the LDAP server)

- look at the trustDirection when looking up trusted domains and don't
  include trusts that trust our domains but we don't trust
  theirs.

- use LDAP to query the alternate (netbios) name for a realm, and make
  sure that both and long and short forms of the name are accepted by
  winbindd. Use the short form by default for listing users/groups.

- rescan the list of trusted domains every 5 minutes in case new trust
  relationships are added while winbindd is running

- include transient trust relationships (ie. C trusts B, B trusts A,
  so C trusts A) in winbindd.

- don't do a gratuituous node status lookup when finding an ADS DC (we
  don't need it and it could fail)

- remove unused sid_to_distinguished_name function

- make sure we find the allternate name of our primary domain when
  operating with a netbiosless ADS DC (using LDAP to do the lookup)

- fixed the rpc trusted domain enumeration to support up to approx
  2000 trusted domains (the old limit was 3)

- use the IP for the remote_machine (%m) macro when the client doesn't
  supply us with a name via a netbios session request (eg. port 445)

- if the client uses SPNEGO then use the machine name from the SPNEGO
  auth packet for remote_machine (%m) macro

- add new 'net ads workgroup' command to find the netbios workgroup
  name for a realm
(This used to be commit e358d7b24c86a46d8c361b9e32a25d4f71a6dc00)
2002-08-05 02:47:46 +00:00
Simo Sorce
dd93ff381d passwords where not checked (you cannot check if the same buffer differs from itself).
they where alo not clean after use!

Simo.
(This used to be commit 5a257096e9afdcd1dea863dff43952457a74a9f1)
2002-08-04 15:40:39 +00:00