1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

6819 Commits

Author SHA1 Message Date
Jean-François Micouleau
ca477a61e7 added lsaenumprivsaccount and lsalookupprivvalue to rpcclient
and more to come ...

	J.F.
(This used to be commit 1748d5a2af1f2dcf718d6f162ed483b001542494)
2001-11-24 00:13:41 +00:00
Jeremy Allison
b9a82592f6 Sorry. I broke the build, missed on open_directory call.
Jeremy.
(This used to be commit fe288b14cc7f2bc6b8427438da672e7dd7812027)
2001-11-23 19:07:35 +00:00
Jean-François Micouleau
7e1dce1de8 return NO_MORE_ENTRIES in lsa_enum_trust_dom. UserManager is happier :-)
J.F.
(This used to be commit 75ee50bbef531a1487c1f8b76b8e70627fbdbdf1)
2001-11-23 15:17:30 +00:00
Jean-François Micouleau
2527f5ef52 Changed how the privileges are stored in the group mapping code. It's now
an array of uint32. That's not perfect but that's better.

Added more privileges too.

Changed the local_lookup_rid/name functions in passdb.c to check if the
group is mapped. Makes the LSA rpc calls return correct groups

Corrected the return code in the LSA server code enum_sids.

Only enumerate well known aliases if they are mapped to real unix groups.
Won't confuse user seeing groups not available.

Added a short/long view to smbgroupedit.

now decoding rpc calls to add/remove privileges to sid.

        J.F.
(This used to be commit f29774e58973f421bfa163c45bfae201a140f28c)
2001-11-23 15:11:22 +00:00
Jeremy Allison
d05bbf0422 Fixed delete on close bug. Added core dump code to winbindd.
Jeremy.
(This used to be commit a58d0f91f9ee7354c01a9c20cfe178d5dc02142d)
2001-11-23 11:18:20 +00:00
Jeremy Allison
d2e279ecf2 Set type to NOTUSED if lookup fail.
Jeremy.
(This used to be commit 20a4167599ce211f239d0f324e7e73a1c2d8a5a6)
2001-11-23 09:04:09 +00:00
Andrew Bartlett
d1b5508a7b Update some of the error mapping, based on on-the-wire observations of an NT4 server.
This lets our Win9X clients give sane error messages when you get passwords wrong
and the like.

Andrew Bartlett
(This used to be commit f199e9518226ed57a011113bdf06c85265e49674)
2001-11-23 07:08:20 +00:00
Tim Potter
a2e136a8a0 Finally worked out why a enumerate trusted domains was returning a
NT_STATUS_UNABLE_TO_FREE_VM error.  This error code was mis-defined
as 0x8000001a instead of 0xc000001a.  The former is actually a
NT_STATUS_NO_MORE_ENTRIES warning which is what we see in the status
code.

Removed the & 0xffffff from the loop in get_nt_error_msg() as all the
error constants now have the correct high bits set.
(This used to be commit 80dca2c9e46753d87e673d712c96c76ffde0b276)
2001-11-23 05:50:05 +00:00
Tim Potter
554d387ab3 Added constants and error message for dos error code 1326 (logon failure).
(This used to be commit 6ce1eec09de64f19d969a67fc236abd4ae277926)
2001-11-23 05:37:40 +00:00
Martin Pool
59e9c62a66 Reference about SIDs from tpot.
(This used to be commit 53963eae7d5930246c6c0c0b947f425d50d382c3)
2001-11-23 05:34:41 +00:00
Martin Pool
24d03aefe9 More better now.
(This used to be commit a875b3a6e7a9501a31fe15fb9b04394a95484e77)
2001-11-23 04:53:56 +00:00
Tim Potter
3400a3a3ed Got rid of that stupid parse_domain_user() warning when compiling
winbindd.
(This used to be commit 72060a6f5af505d597f372d550d7f3fe559e5550)
2001-11-23 04:37:41 +00:00
Martin Pool
1a74f88b1f Quieten gcc const warning.
doxyfy.
(This used to be commit 6ddd8e7bf69d8aee4148cbcf72de55c903d5f0a1)
2001-11-23 04:24:26 +00:00
Martin Pool
946374e8af Finish 1.45 by removing redundant sid->string conversion in
winbindd_lookup_sid_by_name.  Also if the lookup fails then clobber
the output parameters rather than leaving them looking potentially
valid.

Add doxygen.
(This used to be commit 61dba52a549039255e46393be1618d3eb54b79dd)
2001-11-23 03:54:07 +00:00
Martin Pool
a833fbebcd I think you were passing the name of the SID, rather than the DOM_SID
pointer itself.  (Whatever that is.... ;-)
(This used to be commit 1393c7c4ede1d6d624c3f5d0bfa4c18b0c6dc27f)
2001-11-23 03:33:22 +00:00
Tim Potter
e7d230d327 Fixed bug in canned results list for checking the error code of wbinfo.
Made test names more verbose.
(This used to be commit 87955fcf303d82d38ae543e7986c59fd086dc2db)
2001-11-23 03:24:36 +00:00
Tim Potter
d2b9acd003 Don't initialise static pointers to NULL.
(This used to be commit 039ea0a0b94be2d70164616f448c0e29fed071cf)
2001-11-23 01:00:54 +00:00
Tim Potter
79b34d1b11 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
(This used to be commit 8fc772c9e5770cd3a8857670214dcff033ebae32)
2001-11-23 00:52:29 +00:00
Tim Potter
5788899a48 Fixed check machine account function.
(This used to be commit 8f01a8b07883d18f44da665cbc8e5fba04d3bc91)
2001-11-23 00:14:04 +00:00
Tim Potter
2025ef4c18 Ignore *.po files.
(This used to be commit 5d343b40650464ae70037fd6e3fd96a9865fa611)
2001-11-23 00:08:12 +00:00
Martin Pool
71c15a5f48 Rename $pwd to $test_root to avoid future confusion.
(This used to be commit fa7367a9731bc139ff4611f2781f3ca9bc7f89a7)
2001-11-22 23:59:48 +00:00
Jean-François Micouleau
fbfd27a495 added lsa_enum_sids to rpcclient
fixed lsa_enum_rpivs server code. This time it works as W2K.
fixed smbgroupedit to compile and work.

	J.F.
(This used to be commit 646651018a2736833e49e76f6ca735a4647d9746)
2001-11-22 23:50:16 +00:00
Tim Potter
9927b5b392 Removed unused variable.
(This used to be commit d1dee2d0323fe6fc498e50201535b1718a88abaf)
2001-11-22 23:38:37 +00:00
Tim Potter
e996ac23f7 Oops - opening wrong pipe name in cli_lsa_initialise() helper function.
(This used to be commit d2034bc5f7dc9b5b9d5e4f17ee8e468307dcb2d5)
2001-11-22 22:45:52 +00:00
Jean-François Micouleau
b09d9e3dc5 fixing enum_privs and get_dispname server code.
That works as expected now.

	J.F.
(This used to be commit f2766932d693fc601b2c3e7853e61f751435ec3c)
2001-11-22 17:19:59 +00:00
Jean-François Micouleau
33e20222e0 add another command to rpcclient: getdispname. Show the full description
of a privilege.

	J.F.
(This used to be commit 84035ae72f422edadd9fa7e493c3d8176bb6a53d)
2001-11-22 16:54:48 +00:00
Jean-François Micouleau
2e8ae88785 add a command to rpcclient: enumprivs
J.F.
(This used to be commit fa63cb78e326040f68d858d593ba98e06c26c92e)
2001-11-22 16:12:43 +00:00
Jeremy Allison
1db30a338c Got positive and negative name caching working correctly with lookupname/lookupsid.
There was a bug in cli_lsa_lookup_name/lookup_sid where NT_STATUS_NONE_MAPPED was
being mapped to NT_STATUS_OK, and also the *wrong* number of entries mapped
was being returned. The correct field is mapped_count, *NOT* num_entries.
Jeremy.
(This used to be commit 9f8c644abc455510c06dbd5dbac49c6270746560)
2001-11-22 08:31:50 +00:00
Jeremy Allison
609cdbfe37 Fixed +ve caching. Still problems with -ve caching.
Jeremy.
(This used to be commit 7883a2288a6e3198e10ab4e02ed4585e7bb313f6)
2001-11-22 07:48:57 +00:00
Jeremy Allison
a81e3902bc Fixed caching of lookupname/lookupsid. Error in check of success !
Jeremy.
(This used to be commit d039d4fa507a7284e7e1cada0026c63863fe0a2d)
2001-11-22 07:32:48 +00:00
Jeremy Allison
ee58402ac4 Added debugs to track down sequence lookup problems.
Jeremy.
(This used to be commit d3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb)
2001-11-22 07:24:07 +00:00
Gerald Carter
59b2e772e2 remove unused variables
(This used to be commit 90ed3d47e16a511161532f75b98db3f4b10ba685)
2001-11-22 06:44:05 +00:00
Gerald Carter
37a84c7bba merge oops fix from 2.2
(This used to be commit 48f2da440f973047faa7ecf031be66bc30d4a985)
2001-11-22 06:23:49 +00:00
Gerald Carter
fae4bc494d sync up with 2.2
(This used to be commit 0c0f3223731cfb46a0e3b8e289c13c8f908e0cf2)
2001-11-22 06:12:54 +00:00
Gerald Carter
116740a5df merge from 2.2
(This used to be commit 96b3a65a73d403a41bf1b3aba79bd743698344ac)
2001-11-22 05:56:09 +00:00
Gerald Carter
456cdf6aee --with-msdfs wsa removed
(This used to be commit f1143cd02c24f7c56b2e4ec70f77f22dbc01b113)
2001-11-22 05:29:33 +00:00
Gerald Carter
11aa019bec WITH_MSDFS is not define anywhere. It's built by default.
(This used to be commit b51e5b07d9f7719180b28215236efc3fa09d8bea)
2001-11-22 05:29:04 +00:00
Tim Potter
8e267ac007 Made a libsmbclient doxygen group and moved all the libsmbclient groups
under it.
(This used to be commit 43c496598f8e1aedc9c80222e60bb8e7b3027e03)
2001-11-22 04:29:10 +00:00
Jean-François Micouleau
b03e162127 samr_querydom_info level 1: found the meaning of the unknow fields. And
discovered that our reply is short by 4 bytes since day 1 of this code.

Added a decode function to rpcclient too.

splitted the STRING2 fields filling while trying to understand the win9x
userlist bug. (didn't fix the bug, but the reply looks closer to NT).

        J.F.
(This used to be commit bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d)
2001-11-21 23:25:30 +00:00
Jeremy Allison
f146325e7d W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs.
Jeremy.
(This used to be commit 54c968913d6553c6d834b068234ab176917075eb)
2001-11-21 23:00:59 +00:00
Tim Potter
646f8ca3e8 More spelling fixes, comment reformatting.
(This used to be commit edb556b47446f75dc4987eee15276661eb6cec8d)
2001-11-21 21:10:13 +00:00
Tim Potter
54432c4129 Spelling fix, reformatted comment.
(This used to be commit 096868bd35b374f97e570676fc23c006b6c7a1d3)
2001-11-21 20:14:25 +00:00
Richard Sharpe
e734163ac4 One more patch from Tom Jansen. Hope I didn't break the tree :-)
(This used to be commit 6d7c0f0bb4cbfdcd9a83416345432e07556f6cfc)
2001-11-21 11:04:49 +00:00
Jeremy Allison
16ceec46d6 Added transparent +ve caching for lookupname/lookupsid. -ve caching can
be easily added (a one liner) once we know the correct error codes returned
by a W2K DC.
All other winbindd calls should go through a similar transparent caching layer
(and will soon).
Jeremy.
(This used to be commit b16bb21d371772816a4331f5011c151be0e083d5)
2001-11-21 09:59:15 +00:00
Jeremy Allison
efa52853f6 Preparing to implement +ve and -ve caching for lookupname/lookupsid calls.
Jeremy.
(This used to be commit 1f6cc536b2db0c36feee45cfd6ac1ad5ee8fb05a)
2001-11-21 08:36:43 +00:00
Andrew Bartlett
cade294409 Fix up the build again...
Andrew Bartlett
(This used to be commit a34c07377b1de61e145f699047474a82962ccd5b)
2001-11-21 05:19:13 +00:00
Jeremy Allison
e5c5adb197 Don't scan locking db on closedown.
Jeremy.
(This used to be commit 59cfcd8a6c510204ac059a0d2fddc2fa17199f82)
2001-11-21 04:00:35 +00:00
Richard Sharpe
7c74cc5cab Fix up libsmbclient in head.
Apply the patches from Tom Jansen, get rid of fprintfs and change them to
DEBUGs, etc ...
(This used to be commit 7ac404c85303c9c3fbd48054fc4876bd4bc1567b)
2001-11-21 03:55:59 +00:00
Tim Potter
96d884cc0f Fixed sizeof vs array length bug in make_user_info_winbind_crap()
Spelling fix.
(This used to be commit 3d87c1a2444c3b9267e0dda7a2da77657fba143e)
2001-11-20 23:20:00 +00:00
Jeremy Allison
d325611842 Merged in JohnR's ping messaging extension.
Jeremy.
(This used to be commit 694372b2c4d7713fe228114730027175f7b4e9b6)
2001-11-20 22:55:46 +00:00