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
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
Gerald Carter
4ae2e47b93 remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 237857a760)
2003-04-29 15:27:06 +00:00
Gerald Carter
0db7c13f92 remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 000fe6b2f0)
2003-04-29 15:24:52 +00:00
Jim McDonough
7b126ce7a0 Like net rpc user -l, let net ads user -l allow more than 50 characters in
comments.
(This used to be commit b5b1732b11)
2003-04-29 15:15:31 +00:00
Jim McDonough
ad8e83f78f Allow net rpc user -l to list longer than 50 characters in a user comment.
Net.exe on windows won't allow more than 50 characters to be entered, but
through AD you can have much more than this.
(This used to be commit ca2886c938)
2003-04-29 15:09:54 +00:00
Gerald Carter
d1ac14a49c adding ifdef'd code to add alias membership for vampire
(This used to be commit 21867183e0)
2003-04-29 14:43:16 +00:00
Gerald Carter
c6d550b99b adding ifdef'd code to add alias membership for vampire
(This used to be commit 2557b94519)
2003-04-29 14:42:49 +00:00
Andrew Bartlett
103abffcae Some passdb backends really don't like having no primary group - so always
set one - new accounts -> domain users, unless otherwise specified.

This moves that logic from pdb_set_sam_sids() into pdb_init_sam_new(), which
is called by all the 'new account' creators. (pdb_set_sam_sids() now only
deals with the mapping from an existing account)

Andrew Bartlett
(This used to be commit 2c7b3d9fd5)
2003-04-29 14:38:45 +00:00
Jelmer Vernooij
d9a34fec65 Change order of parameters to smb_register_passdb()
(This used to be commit 63cf5637c1)
2003-04-29 14:09:50 +00:00
Gerald Carter
94102aea67 add version back to lanman string in sessetup reply
(This used to be commit 4ab1909378)
2003-04-29 13:29:14 +00:00
Gerald Carter
ad9a3848a8 add version back to lanman string in sessetup reply
(This used to be commit dade462a16)
2003-04-29 13:28:48 +00:00
Andrew Bartlett
a60682e9ab Merge Samba 3.0 pdb_ldap from 3.0 into HEAD, so as to allow idra to continue
his IDMAP work.

This version also works properly (the HEAD version had suffered from bitrot),
and should be a good basis to change into the new IDMAP rules.

It also includes UTF8 conversions.

Included also are the schema changes, and a note about the now very old scripts
in examples/LDAP (they don't work for this, or even the previous schema).

Andrew Bartlett
(This used to be commit 38a8f2b23a)
2003-04-29 12:54:46 +00:00
Simo Sorce
2aadb320a4 forgot to add the file where things moved
(This used to be commit 3c2963f8e3)
2003-04-29 11:40:52 +00:00
Simo Sorce
fd102eb947 consolidate idmap code in one place
(This used to be commit f7041ec5d7)
2003-04-29 10:54:13 +00:00
Andrew Bartlett
8e7525be92 Merge 3.0's change to how we add users onto HEAD, including a few other bits
of sync-up for the rpc_server/srv_samr_nt.c

Andrew Bartlett
(This used to be commit 3c867aedd9)
2003-04-29 10:26:51 +00:00
Andrew Bartlett
281d95e2f3 Use a common function to create the SAM_ACCOUNT being used to add accounts
to the system.  This means that we always run Get_Pwnam(), and can never add
FOO when foo exists on the system (the idea is to instead add foo into
the passdb, using it's full name, RID etc).

Andrew Bartlett
(This used to be commit bb79b127e0)
2003-04-29 09:43:17 +00:00
Gerald Carter
e3ae1a2f23 sync with HEAD and remove --with-misplussam as well
(This used to be commit 531c2df8d4)
2003-04-29 06:06:41 +00:00
Gerald Carter
4d6c97edb2 remove --with-tdbsam since it is always built now
(This used to be commit f277cd54ea)
2003-04-29 06:03:04 +00:00
Gerald Carter
b15ea80acf do not build wrepld by default; package maintainers need to update their files now (john :) )
(This used to be commit 4a2bd728a5)
2003-04-29 05:48:07 +00:00
Gerald Carter
46eac77b3b only call the add_script if the getpwnam_alloc() fails
(This used to be commit ba1e654a15)
2003-04-29 05:37:42 +00:00
Gerald Carter
97a16d0cae don't implement any group mapping functions in the guest sam module
(This used to be commit a4056e2cae)
2003-04-29 05:32:00 +00:00
Gerald Carter
e30c2e18f6 don't implement any group mapping functions in the guest sam module
(This used to be commit a354bf4b7e)
2003-04-29 05:31:06 +00:00
Gerald Carter
f96f82da05 removing printing = SOFTQ since no one knows what it is
(This used to be commit 7daf5f0042)
2003-04-29 05:30:42 +00:00
Gerald Carter
2aa8a05f33 only call the add_script if the getpwnam_alloc() fails
(This used to be commit c0807e2199)
2003-04-29 05:30:29 +00:00
Gerald Carter
6760896739 removing printing = SOFTQ since no one knows what it is
(This used to be commit 2839534722)
2003-04-29 05:06:18 +00:00
Simo Sorce
67a5f62e43 ok next_rid out as well local_*id_to*id functions
reverted user making function, did not pass the abartlet test :-)
idmap is now fully integrated, we only miss user creation and removal of uid
and gid from SAM_ACCOUNT
(This used to be commit 67af8c2658)
2003-04-29 03:31:00 +00:00
Andrew Bartlett
df31340b5d Fix for format string warning from vance
(This used to be commit 0369d4432b)
2003-04-29 03:04:05 +00:00
Simo Sorce
e64b34cd47 swat need idmap now
(This used to be commit c4ba4db341)
2003-04-28 23:58:55 +00:00
Simo Sorce
8d4942e2df new helper functions to create users
(This used to be commit 74826e7ebb)
2003-04-28 23:36:54 +00:00
Jeremy Allison
512c11c445 Fixes from Ronan Waide <waider@waider.ie> for large RPC writes.
Jeremy.
(This used to be commit 30512b7d3e)
2003-04-28 18:43:46 +00:00
Jeremy Allison
fa497c6c76 Fixes from Ronan Waide <waider@waider.ie> for large RPC writes.
Jeremy.
(This used to be commit a330bf170e)
2003-04-28 18:42:34 +00:00
Jelmer Vernooij
81256ecbb9 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit f4576757d1)
2003-04-28 18:33:25 +00:00
Jelmer Vernooij
17a3acafa8 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit bc4b51bcb2)
2003-04-28 17:48:48 +00:00
Andrew Bartlett
c07d7de389 Add cast for compiler
(This used to be commit 456eb5d05a)
2003-04-28 14:23:44 +00:00
Volker Lendecke
df91b5db2b Typo in error message
Volker
(This used to be commit a1cae680f9)
2003-04-28 12:29:25 +00:00
Volker Lendecke
8be1c3a0e4 Fix a confusing error message
Volker
(This used to be commit 69df898afb)
2003-04-28 12:27:18 +00:00
Andrew Bartlett
c5be81e636 The caller must always set the RID on the SAM_ACCOUNT, so don't try and guess
it from the UID.

Andrew Bartlett
(This used to be commit cdc1d05051)
2003-04-28 11:46:22 +00:00
Andrew Bartlett
84e479c4a3 The RID must be 'SET', not 'DEFAULT' or we won't set it into LDAP, and try
to make it up from the algorithm...

Andrew Bartlett
(This used to be commit 0d8e4066a3)
2003-04-28 11:40:58 +00:00
Andrew Bartlett
9449d80f87 Guenther Deschner <gd@suse.de> notes that I missed out setting the default
for the 'normal' case (not --with-ldapsam).

Andrew Bartlett
(This used to be commit ebe5c61818)
2003-04-28 11:14:12 +00:00
Andrew Bartlett
49530d0db5 A new pdb_ldap!
This patch removes 'non unix account range' (same as idra's change in HEAD),
and uses the winbind uid range instead.

More importanly, this patch changes the LDAP schema to use 'ntSid' instead
of 'rid' as the primary attribute.  This makes it in common with the group
mapping code, and should allow it to be used closely with a future idmap_ldap.

Existing installations can use the existing functionality by using the
ldapsam_compat backend, and users who compile with --with-ldapsam will get
this by default.

More importantly, this patch adds a 'sambaDomain' object to our schema -
which contains 2 'next rid' attributes, the domain name and the domain sid.
Yes, there are *2* next rid attributes.  The problem is that we don't 'own'
the entire RID space - we can only allocate RIDs that could be 'algorithmic'
RIDs.  Therefore, we use the fact that UIDs in 'winbind uid' range will be
mapped by IDMAP, not the algorithm.

Andrew Bartlett
(This used to be commit 3e07406ade)
2003-04-28 10:20:55 +00:00
Andrew Bartlett
4121d1611d inet_pton isn't portable, so use interpret_addr2.
(This used to be commit 04d2738132)
2003-04-28 09:19:09 +00:00
Andrew Bartlett
f0c62a47f7 Merge memory leak fixes in our trusted domain list from 3.0 to HEAD
(This used to be commit c7f06f3a48)
2003-04-28 09:14:31 +00:00
Andrew Bartlett
e627d756db Merge compile warning fixes from 3.0
(This used to be commit c0903951a1)
2003-04-28 09:02:21 +00:00
Andrew Bartlett
d031ba5c83 Merge compile and other fixes from 3.0 to HEAD.
Including smbtorture bugfixes, and a better TCONDEV test.

Andrew Bartlett
(This used to be commit 52c5806004)
2003-04-28 08:54:51 +00:00
Tim Potter
9784320676 Merge:
> Perform lp_load() before popt to fix -W option.
(This used to be commit f8db590b07)
2003-04-28 07:05:50 +00:00
Tim Potter
d31cb1b468 Perform lp_load() before popt to fix -W option.
(This used to be commit d20f4bf5d8)
2003-04-28 07:03:08 +00:00
Tim Potter
a2e4ac9eef Merge of -W fixes for bug #39:
>Replace workgroup global variable with lp_workgroup()
>
>Call lp_load() before parsing command line options so we can override
>the workgroup value with the -W switch.
(This used to be commit 272d06369d)
2003-04-28 06:59:08 +00:00
Tim Potter
5bab7b987c Replace workgroup global variable with lp_workgroup()
Call lp_load() before parsing command line options so we can override
the workgroup value with the -W switch.

Fixes bug #39.
(This used to be commit 56f070cd52)
2003-04-28 06:54:49 +00:00
Tim Potter
90dbd21cd0 Fix compiler warning.
(This used to be commit f127f96425)
2003-04-28 06:19:11 +00:00
Tim Potter
5ef616cd5e Fix compiler warning.
(This used to be commit 6a783ca81c)
2003-04-28 06:18:44 +00:00
Richard Sharpe
67d0f802a5 Getting ready for code that actually writes a registry file out.
(This used to be commit 22e61a7e77)
2003-04-28 06:16:01 +00:00
Tim Potter
507cdd1996 Merge:
>Patch from waider to set exit code of last executed command specified
>as an argument to -c.
(This used to be commit b1ad692688)
2003-04-28 05:54:37 +00:00
Tim Potter
03412f056d Whitespace syncup.
(This used to be commit 7fd7af121e)
2003-04-28 05:47:07 +00:00
Tim Potter
29ac5d2873 Two character tabs - I don't think so.
(This used to be commit 40d370bec6)
2003-04-28 05:40:46 +00:00
Tim Potter
b6ac19c69e Merge: we need a rule for t_snprintf
(This used to be commit 4d2106f910)
2003-04-28 05:29:10 +00:00
Tim Potter
60948799ea Ignore t_snprintf binary.
(This used to be commit 8d70ef6b8c)
2003-04-28 05:28:48 +00:00
Tim Potter
266f1fddff Merge of a debuglevel downgrade from HEAD.
(This used to be commit d17e04e82b)
2003-04-28 05:26:59 +00:00
Tim Potter
322d385b6e Merge stf updates from HEAD.
(This used to be commit 20bde94eb8)
2003-04-28 05:20:01 +00:00
Tim Potter
4ea3cd2629 Merge of const fixes from HEAD.
(This used to be commit a847ebd827)
2003-04-28 05:18:30 +00:00
Tim Potter
ee007fc7b8 Merge from HEAD:
>Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs
>return unexpected data.
>
>Closes bug #2.
(This used to be commit 2e5f75beaf)
2003-04-28 03:36:01 +00:00
Tim Potter
39fbda7f03 Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs
return unexpected data.

Closes bug #2.
(This used to be commit 0c3314ab97)
2003-04-28 03:33:56 +00:00
Jelmer Vernooij
ed12657e77 Fix number of arguments to asprintf()
(This used to be commit 5e4e6a6ed0)
2003-04-28 00:29:00 +00:00
Jelmer Vernooij
45ffe8c816 Fix number of arguments to asprintf()
(This used to be commit 42e76c3123)
2003-04-28 00:28:25 +00:00
Jelmer Vernooij
d32e9ee6e1 Make some more functions static
(This used to be commit ddd2e65586)
2003-04-28 00:28:01 +00:00
Jelmer Vernooij
1914b3ba9f Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit 674b671983)
2003-04-27 20:49:18 +00:00
Jelmer Vernooij
d2cea7d289 Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit ccabb7961a)
2003-04-27 20:47:15 +00:00
Simo Sorce
88e41f9e20 prepare to get _nua out of the door (but back in from the window ;-)
(This used to be commit 09eb02cba0)
2003-04-27 12:47:41 +00:00
Simo Sorce
e06940968a default remote idmap backend is null
(This used to be commit 16302b080a)
2003-04-27 12:25:53 +00:00
Simo Sorce
c737b1f758 make winbind use idmap as well.
change idmap_init call

removed ldap backend for winbind idmap, seem it had problems anyway and it
have to be reworked to work with idmap without calling winbind code.

simo
(This used to be commit 9d7d007443)
2003-04-27 12:07:20 +00:00
John Terpstra
da66598b3e Patch from Vorlon
(This used to be commit 837bc15a54)
2003-04-26 19:46:59 +00:00
John Terpstra
8657fc91da PAtch from VORLON
(This used to be commit 2f266669b2)
2003-04-26 19:45:07 +00:00
Gerald Carter
e82f3c4461 round three of CIDR fixes; spotted by Tomoki AONO
(This used to be commit 920958a392)
2003-04-26 16:18:39 +00:00
Gerald Carter
ce9af4e049 round three of CIDR fixes; spotted by Tomoki AONO
(This used to be commit 554026b208)
2003-04-26 16:18:20 +00:00
Simo Sorce
fc955b8c18 enhancements
(This used to be commit ff051e9cf4)
2003-04-26 15:48:48 +00:00
Simo Sorce
0bc85d32e1 add idmap only parameter
make idmap not map SIDs outside the uid/gid range defined by default
this is to keep backward compatibility
(This used to be commit bec45093c3)
2003-04-26 14:43:33 +00:00
Andrew Bartlett
38c0f29c9e Remove the unpopular pdb_unix, which has served it's time well.
Also get charset 'werid' for both --enable-developer options in configure.

Andrew Bartlett
(This used to be commit 2a99e77e91)
2003-04-26 13:49:55 +00:00
Andrew Bartlett
b292909ead After a quick run with the 'weird' charset, squash a few bugs in our new
'UF8-safe' LDAP code.

I hope I've caught all the places where we were pushing strings into or
out of LDAP now.

Andrew Bartlett
(This used to be commit 70bf7a5f71)
2003-04-26 13:29:37 +00:00
Jelmer Vernooij
56d2bb2b95 Add the weird charset in 3_0 and build it by default for ./configure --enable-developer
(This used to be commit bc5603454a)
2003-04-26 11:49:05 +00:00
Jelmer Vernooij
3f3f30549c Fix the weird charset and build it by default for ./configure -enable-developer
(This used to be commit 8d17a4dc21)
2003-04-26 11:48:16 +00:00
Jelmer Vernooij
17c29f0faf Fix the 'weird' charset module. Also, built it by default for
./configure --enable-developer
(This used to be commit 1c0ae10301)
2003-04-26 11:38:42 +00:00
Simo Sorce
43b3ea968b back port from HEAD
(This used to be commit f7cfdf20b7)
2003-04-26 01:15:57 +00:00
Simo Sorce
05a7f65f8a let's suppose I want to specify exactly which SID a user should have ...
Simo.
(This used to be commit ef1eaa9b7e)
2003-04-26 01:02:25 +00:00
Simo Sorce
221729252b A RID can never be zero
(This used to be commit e2d757aed2)
2003-04-26 01:01:14 +00:00
Jim McDonough
fda7b4b226 Get credentials before publishing printers.
(This used to be commit 674174fcca)
2003-04-25 21:51:26 +00:00
Volker Lendecke
23836e62fc As nobody really objected to this patch, I opted to create facts :-)
This uses 'socket address' as the source address for nmbd. This way we
can again synchronize with the DMB if we have 'bind interfaces only'
to a virtual interface.

I'd love to see this in 2.2.9, but that is up to jerry or jra.

Volker
(This used to be commit 5e305e4255)
2003-04-25 12:42:57 +00:00
Volker Lendecke
10dc904bb4 As nobody really objected to this patch, I opted to create facts :-)
This uses 'socket address' as the source address for nmbd. This way we
can again synchronize with the DMB if we have 'bind interfaces only'
to a virtual interface.

I'd love to see this in 2.2.9, but that is up to jerry or jra.

Volker
(This used to be commit fe637c690b)
2003-04-25 12:42:32 +00:00
Richard Sharpe
11b96ef574 Finish laying out the SD, and now back to finishing off NK records ...
(This used to be commit 74c8f616c3)
2003-04-25 07:04:32 +00:00
Richard Sharpe
7aa665f2b2 More code to store ACEs and SIDs. I have almost enough to start testing
the writing of a registry tree, since I can store the header, and the first
key (NK_REC) and the SD associated with that key, the SK_REC.
(This used to be commit abced0ed9e)
2003-04-25 06:43:28 +00:00
Andrew Bartlett
abd9926240 Based on a patch by Alex Deiter <tiamat@komi.mts.ru>, make sure that we convert
to and from UTF8 when talking to our LDAP server in pdb_ldap.

Andrew Bartlett
(This used to be commit 759ba40b12)
2003-04-25 05:59:49 +00:00
Andrew Bartlett
ca103a076a This function is a duplicate.
(This used to be commit fd0cd6200b)
2003-04-25 05:29:55 +00:00
Tim Potter
bf3e2980bc Merge of missed another while condition when enumerating aliases.
(This used to be commit ee78196bcf)
2003-04-25 04:09:01 +00:00
Richard Sharpe
803f257032 Keep coding this boring stuff to lay out security descriptors ...
(This used to be commit 6cf0ee44ca)
2003-04-25 03:59:05 +00:00
Tim Potter
91f650fb5b Missed another condition on a while loop.
(This used to be commit 8ff52aec87)
2003-04-25 03:53:20 +00:00
Gerald Carter
e4e1bface8 fix and if () that should be an 'else if()'
(This used to be commit b110c499fa)
2003-04-25 02:26:53 +00:00
Gerald Carter
f4187018ea fix and if () that should be an 'else if()'
(This used to be commit 82f024723c)
2003-04-25 02:26:23 +00:00
Tim Potter
c61ec2d10e Minor cleanup of enum domain groups/aliases:
- return NT_STATUS_NO_MEMORY instead of NT_STATUS_UNSUCESSFUL if a
      talloc fails

  - don't try and tallocate memory when the number of entries returned was
    zero

  - rename some cut&pasted variable names in enum domain aliases function
(This used to be commit aa748e1da5)
2003-04-25 02:02:01 +00:00
Tim Potter
d3ba70356e Merge:
>When calling cli_samr_enum_{dom,als}_groups in a while loop, the
>terminating condition should be result != STATUS_MORE_ENTRIES, not
>result == NT_STATUS_OK otherwise we get stuck in an infinite loop
>when there's any sign of trouble.
(This used to be commit 4998a72cf8)
2003-04-25 02:00:47 +00:00
Tim Potter
cc5121f9e5 Minor cleanup of enum domain groups/aliases:
- return NT_STATUS_NO_MEMORY instead of NT_STATUS_UNSUCESSFUL if a
    talloc fails

  - don't try and tallocate memory when the number of entries returned was
    zero

  - rename some cut&pasted variable names in enum domain aliases function
(This used to be commit cb94b2b2d1)
2003-04-25 01:52:52 +00:00
Tim Potter
f1e92738b2 When calling cli_samr_enum_{dom,als}_groups in a while loop, the
terminating condition should be result != STATUS_MORE_ENTRIES, not
result == NT_STATUS_OK otherwise we get stuck in an infinite loop
when there's any sign of trouble.
(This used to be commit 2266d281a4)
2003-04-25 01:37:39 +00:00
Jelmer Vernooij
42c01600c3 Don't store UID or GID
(This used to be commit b2d9d45049)
2003-04-24 21:04:44 +00:00
Jelmer Vernooij
e806761ff5 Don't store UID or GID
(This used to be commit a986076a74)
2003-04-24 21:04:03 +00:00