summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Added global_sid_NULL S-1-0-0 to list of global sids.Tim Potter2000-07-061-0/+2
|
* Bracked unbracketed macro arguments while looking for another bug.Tim Potter2000-07-061-2/+2
|
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-032-0/+1395
| | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. --jerry
* fixed size alignment in tallocAndrew Tridgell2000-06-261-2/+2
|
* lib/util_sid.c: Uninitialized memory read.Jeremy Allison2000-06-241-0/+2
| | | | | | | | | | rpc_parse/parse_spoolss.c: Added note about prs_align when marshalling a SEC_DESC... rpc_server/srv_lsa.c: Tim - your changes broke the display of the 'everyone' group when doing file access with no winbindd running. This is a partial fix - more when I have analysed this more. rpc_server/srv_spoolss_nt.c: Fix for the 'change driver' problem ! Hurrah ! Jeremy.
* lib/util_unistr.c: Off-by-one fix for dos_PutUniStr from John Reilly ↵Jeremy Allison2000-06-231-1/+1
| | | | | | | jreilly@hp.com. Memory leak fix for new sec_ctx code (sorry Tim :-). Jeremy.
* lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison2000-06-221-48/+3
| | | | | | | | | Removed unistr_to_ascii() as it was never used. printing/nt_printing.c: Removed "DUMMY.XX" files. rpc_server/srv_spoolss_nt.c: Use dos_PutUniCode() instead of ascii_to_unistr(). Attempted to fix the "return value" size code based on J.F's comments. This needs looking at. Jeremy.
* fixed two minor bugs in new sys_select()Andrew Tridgell2000-06-211-5/+5
|
* Paranoia changes to ensure that anything touched by a signal handlerJeremy Allison2000-06-191-1/+1
| | | | | and the main code is declared as VOLATILE SIG_ATOMIC_T. Jeremy.
* Merged parse_domain_user() from TNG.Tim Potter2000-06-141-0/+20
|
* forgot to checkin select.cAndrew Tridgell2000-06-131-0/+107
|
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-122-109/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised!
* fixed a bug in BlockSignals() for systems that don't haveAndrew Tridgell2000-06-121-4/+2
| | | | sigprocmask()
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-113-11/+21
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-101-0/+2
| | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation.
* Fix from Elrond for hash table corruption. Should fix stat cache bug (IJeremy Allison2000-06-091-2/+10
| | | | | sincerely hope :-). Thanks elrond ! Jeremy.
* do some standard_sub_advanced() in api_net_sam_logon on lp_logon_xxx().Jean-François Micouleau2000-06-091-1/+1
| | | | | | | and if you have unix realname=yes, you get the gecos name when locking the station. J.F.
* clean up oplock capability code ready for Linux codeAndrew Tridgell2000-06-092-13/+20
|
* added se_access_check.Luke Leighton2000-06-082-0/+281
|
* Getting back to a compilable state (not there yet but close).Jeremy Allison2000-06-011-1/+1
| | | | | | | Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
* The functionality in this file has been moved into smbd/unix_acls.c in orderJeremy Allison2000-05-311-679/+0
| | | | | to make the acl functionality regular (we can have smbd/posix_acls etc). Jeremy.
* Fixed LsaQueryInformationPolicy level 3 to return primary domain info.Matthew Chapman2000-05-291-9/+12
| | | | | | | Domain SID is saved in secrets.tdb upon joining domain. Added "Authenticated Users" and "SYSTEM" well-known SIDs (under NT Authority).
* don't return a passwd struct for usernames that don'tAndrew Tridgell2000-05-291-2/+12
| | | | belong to us
* getting and setting security descriptors on printers now worksAndrew Tridgell2000-05-271-0/+2
| | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update
* prs_give_memory in wrong place, also poss. was losing mem.Luke Leighton2000-05-271-2/+2
|
* unistr_to_dos not unistr_to_asciiLuke Leighton2000-05-271-0/+22
|
* fixed nttrans.cLuke Leighton2000-05-272-1/+680
|
* Changed name of case_sensitive in mask_match to avaid gcc "shadow global"Jeremy Allison2000-05-171-4/+2
| | | | | warning. Jeremy.
* Added unicode_to_dos_char() function to address converting single UNICODEJeremy Allison2000-05-121-0/+22
| | | | | characters to one or more DOS codepage characters. Jeremy.
* use "winbind separator" option for domain/user separator characterAndrew Tridgell2000-05-121-14/+0
|
* lib/util_unistr.c:Jeremy Allison2000-05-101-11/+15
| | | | | | | | | | libsmb/clilist.c: rpc_server/srv_spoolss_nt.c: smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion. msdfs/msdfs.c: Removed stub unistr_to_dos. libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and don't add any security. Jeremy.
* - changed smb_getpwnam() to use winbind style usernamesAndrew Tridgell2000-05-101-7/+6
| | | | - finished ntdom -> winbind rename in head
* more merging voodooAndrew Tridgell2000-05-101-0/+4
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>Jeremy Allison2000-05-081-0/+2
| | | | Jeremy.
* a minimal change to get appliance mode to work with winbinddAndrew Tridgell2000-05-041-0/+35
| | | | | | | | | we needed to accept usernames of the form DOMAIN/user, which means we needed to pass the domain to a getpwnam() like routine in certain critical spots. What I'd rather do is get rid of "char *user" everywhere and use the new userdom_struct, but that will have to wait a few days.
* split the username in the vuser structure into a separateAndrew Tridgell2000-05-021-2/+2
| | | | | | | | userdom_struct. As the name implies this also contains a domain (unused at the moment). This will be important shortly, as operation in appliance mode needs the domain to be always carried with the username.
* Moved uglyness needed in fcntl locking (64->32 bit mapping, NFSJeremy Allison2000-05-021-102/+6
| | | | | | | errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c is now very small and clean. Added (*lock) op to vfs layer. Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-029-10/+42
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* - added some error checkingAndrew Tridgell2000-04-301-1/+1
| | | | - removed the VTP hook in smbd
* some cleanupsAndrew Tridgell2000-04-301-10/+13
|
* we don't need fnmatch.c any moreAndrew Tridgell2000-04-302-201/+1
|
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-302-627/+69
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* YIPEE!!!!!Andrew Tridgell2000-04-302-1/+147
| | | | | | | | | | | We finally have a perfect emulation of Microsoft wildcard matching. The routine ms_fnmatch() does wildcard matching with all MS wildcards (including the unicode wildcards), and masktest against a NT4 workstation with hundreds of thousands of random exmaples has not found a single error. amazingly it is only about 60 lines of code, but it has taken us years to get it right. I didn't sleep much last night :)
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-251-1/+0
|
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-241-1/+0
| | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy.
* moved the INSURE hook into util.cAndrew Tridgell2000-04-241-0/+26
|
* don't close high fd's in smbrun when using insure (prevents closingAndrew Tridgell2000-04-231-1/+3
| | | | error fd)
* split out standard_sub_basic() again to fix a bug where %p was beingAndrew Tridgell2000-04-231-14/+29
| | | | substituted in the loadparm code and thus leaving lpq with no printer
* if using insure then don't close fd 2Andrew Tridgell2000-04-231-1/+4
|
* return NULL for a zero size memdupAndrew Tridgell2000-04-221-0/+1
|