summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
* bitmap to stringsLuke Leighton1999-02-161-16/+14
|
* Always null-terminate strings.Matthew Chapman1999-02-152-35/+35
| | | | Also some string length and sizeof(pointer) corrections.
* Cut and paste error.Matthew Chapman1999-02-121-9/+9
|
* UNICODE cleanup (see lib/util_unistr.c).Matthew Chapman1999-02-122-36/+86
| | | | | | No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size).
* enum dom users buffer was 0x80 not 0x8000. must fix "enumeration" codeLuke Leighton1999-02-111-1/+1
| | | | as you need to make multiple enum dom users calls.
* uninitialised pointer being freed if lookupnames failed. oops.Luke Leighton1999-02-111-1/+1
|
* removal of the use of unistrn2 function: replace it with unistr2_to_strLuke Leighton1999-02-091-25/+25
| | | | which is more appropriate.
* fix for enumerate domain users (bug spotted by sean matthews).Luke Leighton1999-01-291-6/+6
| | | | | | | | | also needed to use start index properly and generate next index. both client and server code need to recognise error code 0x105 when there's not enough room to store all the users in one call. sort this out another time.
* rpcclient "Service Control Manager" svcenum [-i] command.Luke Leighton1999-01-283-6/+94
|
* Service Control Manager - service enumeration.Luke Leighton1999-01-272-30/+45
|
* set_port warning / unused / global/local variable overlap issuesLuke Leighton1999-01-271-5/+5
| | | | cmd_svcctl.c tests got put into cvs by mistake.
* - got client code cleartext passwords working again in cli_session_setup.Luke Leighton1999-01-271-1/+2
| | | | | | | | | | | | | | | | | | | needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c
* added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.Luke Leighton1998-12-143-4/+5
|
* adding some enumerate services code, client and server.Luke Leighton1998-12-091-1/+11
|
* adding "Service Control Manager" commands to rpcclient.Luke Leighton1998-12-082-0/+120
|
* adding srvsvc pipe.Luke Leighton1998-12-081-2/+2
|
* issues spotted by herb.Luke Leighton1998-12-071-2/+2
|
* bugs in rpcclient. add_aliasmem uses a DOM_SID2 not a DOM_SID.Luke Leighton1998-12-071-8/+8
|
* removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1998-12-077-253/+282
| | | | | | LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling.
* - lib/unix_sec_ctxt.cLuke Leighton1998-12-072-16/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attempt at taking lib/uid.c and getting a unix security context change module that is independent of "cnums" and "snums". a security context is needed for pipes, not just IPC$ or other services. - group database API added add_group/alias_member, del_group/alias_member, del_group/alias_entry functions. del_builtin_entry() is deliberately set to NULL to cause an exception, you cannot delete builtin aliases. - parse_lsa.c srv_lsa.c fixed lookup_names code, it was a load of trash and didn't do anything. - cmd_samr.c rpcclient.c srv_samr.c added "deletegroup", "deletealias", "delaliasmem", "delgroupmem", "addgroupmem", "addaliasmem", "createalias", "creategroup", to both client and server code. server code calls into unix stubs right now, which don't actually do anything. the only instance where they are expected to do anything is in appliance mode NOT even in the ldap code or anything. client code modified to call samr_lookup_names() for group code (because we can) and lsa_lookup_names() for alias code (because we have to). - srv_lookup.c oops, lookup on unsplit name, we got lookup on DOMAIN, DOMAIN\name instead of DOMAIN, name.
* fixing "addgroupmem" and "enumgroups -m" commands, samr_open_group()Luke Leighton1998-12-041-1/+1
| | | | | | needed a flags fields as you get 0x0000 0010 and 0x0000 001f unknown values for different purposes, no-one's going to tell us what they are and i don't CARE!
* - oops, i got "add alias member" and "delete alias member" swapped.Luke Leighton1998-12-042-12/+14
| | | | | | | | | | | | | | | | - samr_enum_dom_users, the first 4 bytes is some sort of garbage, nt5-beta2 clears them out to zeros whereas nt4 does not. fixed bug where we were assuming that the first 4 bytes of a response _had_ to be non-zero. - cli_lsarpc.c: forgot to append the rid on the lsa_lookup_names() client call. - added in "addaliasmem" and "addgroupmem" commands. the addaliasmem command actually turned out to be a "delaliasmem" :-) :-) - parse_lsa.c: moved assert array check to after the size of useable array space is set...
* - renamed do_samr_xxx to samr_xxxLuke Leighton1998-12-044-163/+669
| | | | | | | | | | | | | | | | | | | | | | | | | | - renamed do_lsa_xxx to lsa_xxx - added "enumgroups [-m]" command, enumerates groups, shows members. - added cmd_sam_add_groupmem(), need to call these in rpcclient.c - added cmd_sam_add_aliasmem(), need to call these in rpcclient.c - modified "enumaliases [-m]" command - improved "enumgroups" and "enumaliases" to display names not just RIDS/SIDs. - renamed "samr_unknown_12" to "samr_lookup_rids". - added the following client-side functions: get_samr_query_groupmem() get_samr_query_aliasmem() get_samr_query_groupinfo() samr_enum_dom_groups() samr_enum_dom_aliases() samr_add_aliasmem() samr_add_groupmem() - improved display output (display.c)
* added createalias command to rpcclientLuke Leighton1998-12-032-0/+87
|
* create domain group command (creategroup) added to rpcclient.Luke Leighton1998-12-032-27/+113
| | | | renamed do_samr_xxxx to samr_xxxx.
* - adding builtin[alias]db.Luke Leighton1998-11-301-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | - lib/sids.c: generate_sam_sid() modified to take a domain name: it now generates "DOMAIN_NAME.SID". reasons: 1) if you run multiple samba servers on the same machine under different netbios names as members of a domain, they won't all use the same SID, which is a _big_ mistake but it would happen _by default_. 2) we have (had) a problem with sid_to_string() and string_to_sid() which cause SIDs to be incorrectly read. one of the major reasons for *NOT* making this change was so as not to disrupt existing users. but as they will be anyway by this bug, we might as well go ahead. - passdb/smbpass.c: wanted to change the meaning of the name in the smbpasswd file to an "nt" name not a "unix" name. this is probably not a good idea: reverted this. - output formatting / bug-fixing in rpcclient query_useraliases code.
* weekend work. user / group database API.Luke Leighton1998-11-293-21/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API...
* LsaLookupNames client call (first used as lookupnames command in rpcclient).Luke Leighton1998-11-252-1/+92
|
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-9/+9
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* need 32 bit status codes to be negotiated because of STUPID dos "error moreLuke Leighton1998-11-131-1/+1
| | | | | data needed" message gets treated as a serious error code (which it isn't) so the client code terminates.
* security descriptors.Luke Leighton1998-11-122-17/+34
| | | | kanji const char* warnings.
* jean-f. sent me some S-1-3-0,1,2,3 SIDs and names. S-1-3 doesn't exist.Luke Leighton1998-11-122-1/+96
| | | | security descriptor testing. hey wow, you can get a SD then send it back!
* oops!Luke Leighton1998-11-111-11/+13
|
* clearing up security descriptorLuke Leighton1998-11-112-5/+8
|
* changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1998-11-114-233/+246
| | | | sorted lookupsids command
* registry delete value command: "regdeleteval".Luke Leighton1998-11-112-0/+66
| | | | this is just so unbelievably simple to do...
* renamed unk_1b to flush_keyLuke Leighton1998-11-111-6/+6
|
* - renamed open_policy to open_hklm.Luke Leighton1998-11-111-8/+8
| | | | | | - renamed open_unk_4 to open_hku - fixed createkey issue spotted by phil cox
* rpcclient registry key delete command: "regdeletekey".Luke Leighton1998-11-102-0/+66
|
* registry modification requires a "sync" or "refresh" on the parent key.Luke Leighton1998-11-101-0/+6
| | | | opcode 0xb added to do this. a likely candidate name is "RegFlushKey".
* include/local.h:Jeremy Allison1998-11-102-3/+2
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* rpcclient registry commands.Luke Leighton1998-11-103-79/+725
|
* split socket util functions into util_sock.c. util.c NOT committedLuke Leighton1998-11-091-0/+397
| | | | | | | | | and util_sock.c NOT included in Makefile.in. registry commands added to rpcclient. waiting for 2_0_0 split before committing modified files. these files are new modules, and are not referenced in the Makefile.in
* rpctorture commandLuke Leighton1998-10-221-8/+2
|
* domain aliases added a bit better: does local aliases if you queryLuke Leighton1998-10-211-1/+1
| | | | | for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid.
* Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.Jeremy Allison1998-10-212-2/+4
| | | | | | smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh ! smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles. Jeremy.
* signed / unsigned warnings (found by herb).Luke Leighton1998-10-201-4/+4
| | | | how do i switch on these warnings in gcc?????
* oopsLuke Leighton1998-10-191-2/+2
|
* output password change messages instead of debug message.Luke Leighton1998-10-191-2/+2
|
* dce/rpcLuke Leighton1998-10-161-3/+16
|