summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbgroupedit.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typoAndrew Bartlett2002-09-271-1/+1
| | | | (This used to be commit 42c7ecd3d5dc5eb8ff690635946a403a82ebb270)
* add -r to usage outputGerald Carter2002-09-261-0/+1
| | | | (This used to be commit a6ec9af7e38b1b937eba7003f130d662d5bde035)
* Add -r parameter to smbgroupedit. With -r you can manually chooseVolker Lendecke2002-09-261-21/+26
| | | | | | | a rid. Volker (This used to be commit 11ec785f3f43b277ae3f28b38865f4de972495bc)
* correctly declare global_myworkgroup to be the right size.Andrew Bartlett2002-07-201-1/+1
| | | | | Andrew Bartlett (This used to be commit 860f5b1a0c1898f1ce380d249610eeaaeb43b9e0)
* Update the usage for smbgroupedit to document -d for 'description'.Andrew Bartlett2002-07-201-0/+2
| | | | | | | I think this one is due to metze. Andrew Bartlett (This used to be commit bce3a2b1d893d83f701205d7969569571f6279b0)
* Globally replace 'global_sam_sid' with get_global_sam_sid(), a selfAndrew Bartlett2002-06-071-2/+1
| | | | | | | | | | initialising function. This patch thanks to the work of "Stefan (metze) Metzmacher" <metze@metzemix.de> This is partly to enable the transition to SIDs in the the passdb. Andrew Bartlett (This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)
* we did not initialise global_myname and global_myworkgroup which lead toJean-François Micouleau2002-04-161-1/+14
| | | | | | | | | duplicate entries in secrets.tdb and false SID generated. took me *hours* to understand. J.F. (This used to be commit bfc3a25b776a5a66e1bd0e2c60c101cea87ef4d5)
* Make smbgroupedit a little easier on the user.Andrew Bartlett2002-02-031-15/+59
| | | | | | | | | | | | We now have error messages for most of the failure cases, and the 'sid' arguments for delete and change can now take the nt group name as a string. Also fix up all the internal functions to be static, keeping the namespace clean. Andrew Bartlett (This used to be commit f1687587010a2390b65bd5efa37cc199b67587f8)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Since we have dynamic initialisation in the group mapping code, makeTim Potter2002-01-291-5/+0
| | | | | | | | init_group_mapping() a static function and don't call it from any client programs. Not sure whether I've made a bigger mess here or not... (This used to be commit 3c887d9021269aaa9fc0bc771af8589077e6208e)
* The new plugable password backend system needs to be initialised afterAndrew Bartlett2002-01-261-5/+5
| | | | | | | lp_load(). Andrew Bartlett (This used to be commit 168c712bf3b8be19e6e72b7bf4563ed3ae87c176)
* added a boolean to the group mapping functions to specify if we need orJean-François Micouleau2001-12-041-5/+9
| | | | | | | | | | | | | | | | | | | | | | not the privileges. Usually we don't need them, so the memory is free early. lib/util_sid.c: added some helper functions to check an SID. passdb/passdb.c: renamed local_lookup_rid() to local_lookup_sid() and pass an RID all the way. If the group doesn't exist on the domain SID, don't return a faked one as it can collide with a builtin one. Some rpc structures have been badly designed, they return only rids and force the client to do subsequent lsa_lookup_sid() on the domain sid and the builtin sid ! rpc_server/srv_util.c: wrote a new version of get_domain_user_groups(). Only the samr code uses it atm. It uses the group mapping code instead of a bloody hard coded crap. The netlogon code will use it too, but I have to do some test first. J.F. (This used to be commit 6c87e96149101995b7d049657d5c26eefef37d8c)
* added a tdb to store the account policy informations.Jean-François Micouleau2001-12-031-12/+10
| | | | | | | | | | | | | | | You can change them with either usermanager->policies->account or from a command prompt on NT/W2K: net accounts /domain we can add a rpc accounts to the net command. As the net_rpc.c is still empty, I did not start. How should I add command to it ? Should I take the rpcclient/cmd_xxx functions and call them from there ? alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more for jeremy ;-) J.F. (This used to be commit bc28a8eebd9245ce3004ae4b1a359db51f77bf21)
* Changed again how the privilege list is handled in the group mapping code.Jean-François Micouleau2001-11-291-12/+9
| | | | | | | | | | | | | | | | | This time it's a PRIVILEGE_SET struct instead of a simple uint32 array. It makes much more sense. Also added a uint32 systemaccount to the GROUP_MAP struct as some privilege showing in USRMGR.EXE are not real privs but a bitmask flag. I guess it's an heritage from NT 3.0 ! I could setup an NT 3.1 box to verify, but I'm too lazy (yes I still have my CDs). Added 3 more LSA calls: SetSystemAccount, AddPrivileges and RemovePrivileges, we can manage all this privilege from UserManager. Time to change the NT_USER_TOKEN struct and add checks in all the rpc functions. Fun, fun, fun. J.F. (This used to be commit 3f0a9ef2b8c626cfa2878394bb7b642342342bf3)
* Changed how the privileges are stored in the group mapping code. It's nowJean-François Micouleau2001-11-231-18/+38
| | | | | | | | | | | | | | | | | | | | | 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)
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-2/+0
| | | | | | 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)
* added lsa_enum_sids to rpcclientJean-François Micouleau2001-11-221-3/+2
| | | | | | | | 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)
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-1/+1
| | | | | default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* allow to rename an NT groupJean-François Micouleau2001-07-091-2/+5
| | | | (This used to be commit 42fc4f4154ccf2e93322da6b0b234f8f846991dc)
* The big character set handling changeover!Andrew Tridgell2001-07-041-2/+0
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Big cleanup of passdb and backends.Jean-François Micouleau2001-05-041-4/+5
| | | | | | | | I did some basic tests but I have probably broken something. Notably the password changing. So don't cry ;-) J.F. (This used to be commit a4a4c02b12f030a3b9e6225b999c90689dfc4719)
* can delete mapping from command line now.Jean-François Micouleau2001-03-231-12/+15
| | | | | J.F. (This used to be commit 287d9fb06899fe7721fdfcd5ccaa566935d31c4d)
* first pass of the new group mapping codeJean-François Micouleau2001-03-231-0/+341
J.F. (This used to be commit 7154deb026d53cb0cd503562174c3332a372be63)