1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

6820 Commits

Author SHA1 Message Date
Andrew Bartlett
e8e73f7f0f Kill off that crazy copy_sam_passwd(). You simply can't do that if the
structre contains pointers (well not if you intend of free those pointers
at some stage)

There is no reason (given the new passdb interface) that you can't modify a
SAM_ACCOUNT in any case.

Andrew Bartlett
-
Jean-François Micouleau
1748d5a2af added lsaenumprivsaccount and lsalookupprivvalue to rpcclient
and more to come ...

	J.F.
-
Jeremy Allison
fe288b14cc Sorry. I broke the build, missed on open_directory call.
Jeremy.
-
Jean-François Micouleau
75ee50bbef return NO_MORE_ENTRIES in lsa_enum_trust_dom. UserManager is happier :-)
J.F.
-
Jean-François Micouleau
f29774e589 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.
-
Jeremy Allison
a58d0f91f9 Fixed delete on close bug. Added core dump code to winbindd.
Jeremy.
-
Jeremy Allison
20a4167599 Set type to NOTUSED if lookup fail.
Jeremy.
-
Andrew Bartlett
f199e95182 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
-
Tim Potter
80dca2c9e4 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.
-
Tim Potter
6ce1eec09d Added constants and error message for dos error code 1326 (logon failure). -
Martin Pool
53963eae7d Reference about SIDs from tpot. -
Martin Pool
a875b3a6e7 More better now. -
Tim Potter
72060a6f5a Got rid of that stupid parse_domain_user() warning when compiling
winbindd.
-
Martin Pool
6ddd8e7bf6 Quieten gcc const warning.
doxyfy.
-
Martin Pool
61dba52a54 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.
-
Martin Pool
1393c7c4ed I think you were passing the name of the SID, rather than the DOM_SID
pointer itself.  (Whatever that is.... ;-)
-
Tim Potter
87955fcf30 Fixed bug in canned results list for checking the error code of wbinfo.
Made test names more verbose.
-
Tim Potter
039ea0a0b9 Don't initialise static pointers to NULL. -
Tim Potter
8fc772c9e5 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.
-
Tim Potter
8f01a8b078 Fixed check machine account function. -
Tim Potter
5d343b4065 Ignore *.po files. -
Martin Pool
fa7367a973 Rename $pwd to $test_root to avoid future confusion. -
Jean-François Micouleau
646651018a 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.
-
Tim Potter
d1dee2d032 Removed unused variable. -
Tim Potter
d2034bc5f7 Oops - opening wrong pipe name in cli_lsa_initialise() helper function. -
Jean-François Micouleau
f2766932d6 fixing enum_privs and get_dispname server code.
That works as expected now.

	J.F.
-
Jean-François Micouleau
84035ae72f add another command to rpcclient: getdispname. Show the full description
of a privilege.

	J.F.
-
Jean-François Micouleau
fa63cb78e3 add a command to rpcclient: enumprivs
J.F.
-
Jeremy Allison
9f8c644abc 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.
-
Jeremy Allison
7883a2288a Fixed +ve caching. Still problems with -ve caching.
Jeremy.
-
Jeremy Allison
d039d4fa50 Fixed caching of lookupname/lookupsid. Error in check of success !
Jeremy.
-
Jeremy Allison
d3f5d5a4ac Added debugs to track down sequence lookup problems.
Jeremy.
-
Gerald Carter
90ed3d47e1 remove unused variables -
Gerald Carter
48f2da440f merge oops fix from 2.2 -
Gerald Carter
0c0f322373 sync up with 2.2 -
Gerald Carter
96b3a65a73 merge from 2.2 -
Gerald Carter
f1143cd02c --with-msdfs wsa removed -
Gerald Carter
b51e5b07d9 WITH_MSDFS is not define anywhere. It's built by default. -
Tim Potter
43c496598f Made a libsmbclient doxygen group and moved all the libsmbclient groups
under it.
-
Jean-François Micouleau
bfbe7f377e 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.
-
Jeremy Allison
54c968913d W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs.
Jeremy.
-
Tim Potter
edb556b474 More spelling fixes, comment reformatting. -
Tim Potter
096868bd35 Spelling fix, reformatted comment. -
Richard Sharpe
6d7c0f0bb4 One more patch from Tom Jansen. Hope I didn't break the tree :-) -
Jeremy Allison
b16bb21d37 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.
-
Jeremy Allison
1f6cc536b2 Preparing to implement +ve and -ve caching for lookupname/lookupsid calls.
Jeremy.
-
Andrew Bartlett
a34c07377b Fix up the build again...
Andrew Bartlett
-
Jeremy Allison
59cfcd8a6c Don't scan locking db on closedown.
Jeremy.
-
Richard Sharpe
7ac404c853 Fix up libsmbclient in head.
Apply the patches from Tom Jansen, get rid of fprintfs and change them to
DEBUGs, etc ...
-
Tim Potter
3d87c1a244 Fixed sizeof vs array length bug in make_user_info_winbind_crap()
Spelling fix.
-