summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* added two new params: "trusted domains" and "trusting domains".Luke Leighton1999-11-161-0/+23
| | | | | | | these _may_ not actually ever get used, as trust relationships really need to be established with shared secrets, and you need to get the SID of the trusted and trusting domains, so this may have to go in a private/xxx.mac file.
* added server-side samr enum domains. fixed some parsing issues, server-side.Luke Leighton1999-11-151-0/+11
|
* split array-handling functions into separate module.Luke Leighton1999-11-122-224/+248
|
* preparation for doing a spoolss enum jobs command. had to rewriteLuke Leighton1999-11-081-2/+83
| | | | spoolss_enumjobs parsing code to do read / writes not just writes.
* const feeding frenzyLuke Leighton1999-11-081-1/+1
|
* const feeding frenzyLuke Leighton1999-11-081-5/+5
|
* added rpcclient spoolenum command. enumerates printers.Luke Leighton1999-11-061-12/+82
| | | | | | spoolss_r_io_enumprinters doesn't decode strings correctly as printer_info_1/2 code has only been written to write structures, not read them.
* samuserset <username> -p password. YESSSSS :)Luke Leighton1999-11-041-6/+16
| | | | you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).
* had to move unistr2_dup(), unistr2_free() and unistr2_copy() intoLuke Leighton1999-11-031-0/+34
| | | | util_unistr.c in order to get bin/testparm to compile.
* three types of array-creation / array-deletion functions:Luke Leighton1999-11-031-31/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | char* UNISTR2* SID* decided to create a higher-order function set, add_item_to_array() free_item_array(). higher-order support routines needed to add a new type: type* item_dup(const type*) void item_free(type*) of course, strdup() and free() are perfect, pre-existing examples of such functions, used in the implementation of add_chars_to_array() and free_char_array(). sid_dup() and free() work for the add_sids_to_array() and free_sid_array() implementations. use unistr2_dup() and created unistr2_free() because the functionality behind these may change into something horrible, like [horror] dynamic memory allocation of the UNISTR2 character array. argh!!!! jean-francois, this function set implements what we talked about over... a year ago, now :-)
* rewrote rpcclient enumaliases command.Luke Leighton1999-11-012-1/+36
|
* NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.Luke Leighton1999-10-301-0/+23
|
* general, drastic improvements to rpcclient.Luke Leighton1999-10-301-0/+18
| | | | | | | | | | | added samgroup <groupname> command added samgroupmem <groupname> command added proper registry key completion added sam command user-completion (e.g samuser [tab]) added sam command group-completion (e.g samgroup [tab])
* rpcclient regenum key client code rewritten to use higher order functions.Luke Leighton1999-10-291-2/+2
|
* added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supportedLuke Leighton1999-10-291-1/+9
| | | | in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.
* - typecast malloc / Realloc issues.Luke Leighton1999-10-257-17/+37
| | | | - signed / unsigned issues.
* the dynamic memory alloc blood-fest goes on...Luke Leighton1999-10-211-1/+1
|
* turning some of the rpcclient functions dynamic. this is likely toLuke Leighton1999-10-211-0/+16
| | | | break a few things...
* - added rudimentary CAP_UNICODE support because i thought it was part ofLuke Leighton1999-10-072-3/+4
| | | | | | | | | | | | | | | | | a problem i was having. - added rudimentary CAP_STATUS32 support for same reason. - added hard-coded, copy-the-same-data-from-over-the-wire version of CAP_EXTENDED_SECURITY, which is a security-blob to encapsulate GSSAPI which encodes SPNEGO which is used to negotiate Kerberos or NTLMSSP. i have implemented NTLMSSP which negotiates NTLMv1 or NTLMv2 and 40-bit or 128-bit etc. i have implemented NTLMv1 / 40-bit. *whew*.
* bertl <bs@niggard.org> patch for making samba listen on port 445, just likeLuke Leighton1999-09-081-0/+3
| | | | nt 5 does. cool!
* patch from michael glauche to add session enum code into smbd.Luke Leighton1999-08-181-8/+75
|
* debug info display (netbios layer).Luke Leighton1999-08-181-1/+11
|
* added back test to exclude unused connections.Luke Leighton1999-08-181-1/+3
|
* use read() instead of fread() as fread() fails on redhat 6.Luke Leighton1999-08-181-14/+24
|
* patch from Michael Glauche to list connections from STATUS..LCK.Luke Leighton1999-08-171-0/+81
|
* reverted jeremy's c++-like security descriptor modifications as theLuke Leighton1999-08-031-20/+0
| | | | | | | | | simplest method to get rpcclient's reggetsec command working. the buffers passed as arguments in do_reg_get_key_sec() do need to be locally allocated not dynamically allocated, as two calls to reg_get_key_sec() are needed. on the first, the server fills in the size of the security descriptor buffer needed. on the second, the server fills in the security descriptor buffer.
* Jean-Francois spotted bug in use of file_modified() routine submittedLuke Leighton1999-07-261-1/+1
| | | | recently.
* BDC support.Luke Leighton1999-07-214-2/+40
|
* check to see if copy_passwd_struct() ever receives its own internalLuke Leighton1999-07-161-0/+7
| | | | buffer as an argument :-) :-)
* code from bertl to allow remap of default built-in names to anything.Luke Leighton1999-07-143-48/+262
| | | | | parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
* renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()Luke Leighton1999-07-131-8/+7
| | | | | | as they are generic "file line-by-line" reading routines. lines with "#" at the front are ignored (as comments). this code started out as the password file reading code.
* allow safe_strcpy() to pass 0 for max length of string, resulting in noLuke Leighton1999-07-081-0/+5
| | | | effect.
* use of dos_mkdir() in generate_sam_sid() should be unix mkdirLuke Leighton1999-07-071-1/+1
|
* added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()Luke Leighton1999-07-071-1/+1
|
* using jeremy's sys_getpwnam() call in the more critical area: Get_Pwnam().Luke Leighton1999-07-062-114/+20
| | | | | | made sure that hashed_getpwnam() has the copy-passwd-struct-wrapper around it, too. TODO: replace all calls of getpwnam() with sys_getpwnam().
* added jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree.Luke Leighton1999-07-061-0/+57
|
* patch from michael stockman <pgmtekn-micke@algonet.se> to provide a staticLuke Leighton1999-07-061-15/+25
| | | | | | struct passwd in _Get_Pwnam(). _Get_Pwnam() is responsible for malloc/ freeing the string pointers to this struct passwd, NOT the callers of _Get_Pwnam().
* improving authentication code (tidyup).Luke Leighton1999-06-292-5/+6
|
* #ifdef'd out hashed_getpwnam.Luke Leighton1999-06-241-0/+4
|
* Moved code that changes the pw_passwd entry (i.e shadow password andTim Potter1999-06-133-8/+90
| | | | | | | | weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug. Note that the Get_Pwnam() function now returns a const struct passwd * as a hint to other developers not to change entries in the struct passwd.
* had to move day display names into lib/util, to get rpctorture to compile.Luke Leighton1999-05-071-0/+2
|
* clean-up of cache-getpw-hash code needed (make proto showed up loadsLuke Leighton1999-05-061-12/+13
| | | | of functions that should be static).
* Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hackLuke Leighton1999-05-062-14/+271
|
* md5 and hmac_md5Luke Leighton1999-04-302-0/+434
|
* use /dev/urandom not /dev/random in head branch.Andrew Tridgell1999-04-281-6/+9
| | | | | also got rid of /tmp time based random source. I saw a system with a huge number of files in /tmp and logging in was taking a _long_ time.
* Fix compile warning in nametouid().Tim Potter1999-04-121-1/+1
|
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. AMatthew Chapman1999-04-081-2/+3
| | | | | BUFFER2 is really a "unibuf" in my terminology and we should treat it as such.
* #ifdef'ed out functions obsoleted by VFS:Tim Potter1999-04-041-4/+14
| | | | | | | | dos_opendir dos_readdirname dos_file_exist Added warning comments to dos_mkdir() as it's used in client code.
* * client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva1999-03-251-2/+26
| | | | | | * client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org>
* SAM database "set user info".Luke Leighton1999-03-251-2/+19
| | | | | | | | | | | | | | | | | | | | | | | ---------------------------- - removed DOM_RID4 - removed SAMR_UNKNOWN_32 - added SAMR_SET_USERINFO (opcode 0x32) - added level 0x1 to SAMR_QUERY_DOM_INFO (needed for create user) - fixed pwdb_gethexpwd() it was failing on XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - added mod_sam21pwd_entry() - preparing to call mod_sam21pwd_entry() - added "user session key" to user_struct.dc. this is md4(nt#) and is needed to decode user's clear-text passwords in SAMR_SET_USERINFO. - split code out in chgpasswd.c to decode 516 byte password buffers.