summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* make protoGerald Carter2000-07-251-0/+5
| | | | --jerry
* Added some error checking and returns to the new 'move' code.Jeremy Allison2000-07-251-2/+2
| | | | Jeremy.
* A rather big change set ! (listed in no particular order)Jean-François Micouleau2000-07-252-7/+10
| | | | | | | | | | | | | | | | | | | | | - changed the default forms flag to 2 - all short architecture name are uppercased - get_short_archi() is now case unsensitive - the drivers TDB is indexed by archi/version/name - implemented code to move drivers from the upload area to the download area. Someone else need to look at that code. - don't return anymore a default driver if it doesn't exist in the TDB. Instead return an error. - cleaned prs_unistr. - #ifdef out jeremy's new SD parsing in printer_info_2 - removed the unused MANGLE_CODE - #ifdef out the security checking in update_printer() as it doesn't work for me. Zap your ntdrivers.tdb, it won't work anymore. J.F.
* Fixed open handle code in printers - 3 functions were always being doneJeremy Allison2000-07-222-21/+22
| | | | | | in order - moved them into open_printer_hnd(). Added saving of comment field. Jeremy.
* make protoGerald Carter2000-07-211-0/+13
|
* make protoGerald Carter2000-07-201-0/+10
|
* Code from John Reilly <jreilly@hp.com> to add tdb lookups into the Win95Jeremy Allison2000-07-191-0/+1
| | | | | printer driver download if looking for the default driver files fail. Jeremy.
* Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel2000-07-191-2/+2
| | | | | | | | | | | | | | | | | | string), the wins_srv module now hands back a struct in_addr when it's called. It caches the IP address once it has been looked up. The IP is cleared (and must be looked up again) if the 'wins server' parameter is reread, or if the node is marked 'dead'. A dead node will not be re-tried for 10 minutes (per a #define in wins_srv.c). As it was, the code was reading the WINS server name or IP directly from lp_wins_server. That's okay, except that if the value was expressed as a name, then a DNS lookup would be done every time the client wanted to talk to the server. I still need to work out the implications of failover regarding the 'unicast subnet' list. Chris -)-----
* First cut toward adding WINS server failover.Christopher R. Hertel2000-07-191-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | *Note: failover doesn't actually work yet!* It's just that the code I'm adding provides all of the pieces necessary. I do have one big question. Something that I'll have to ask Jeremy, I'm thinkin'. In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to set up the Unicast subnet. ...so what happens if the WINS server changes? My guess is either: a) nothing. b) I'd have to change the unicast subnet entry whenever the WINS server changes. Urq. BTW, the lp_wins_server() function no longer returns the WINS server name or IP. It returns the list of WINS servers entered in smb.conf. To get the currently 'live' WINS server, use the wins_srv() function. Fun, eh? Chris -)-----
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-188-361/+445
| | | | | | | | | | | | | | | | | | | | | | | | | | | functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs All part of the ongoing rpcclient work. Also included a new generic list ADT. Cleaner and simplier than the stuff in util_array.c i think (but then that's why I wrote it). --jerry
* make protoTim Potter2000-07-171-84/+0
|
* make protoTim Potter2000-07-171-339/+338
|
* reverted a some previous additions.Gerald Carter2000-07-151-15/+4
| | | | | | | Removed msrpc_local struct --jerry
* make protoGerald Carter2000-07-143-352/+454
| | | | | | | and a few changes to ntdomain for rpcclient printing functions --jerry
* Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug forChristopher R. Hertel2000-07-121-1/+1
| | | | that matter. crh
* make protoGerald Carter2000-07-101-0/+1
|
* Fixes for various compile warnings on Solaris 8.Tim Potter2000-07-101-14/+14
|
* Moved winbind client functions from various odd locations toTim Potter2000-07-101-7/+11
| | | | | | nsswitch/wb_client.c Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG.
* make protoTim Potter2000-07-102-335/+336
|
* More rpcclient merge issues:Gerald Carter2000-07-073-0/+129
| | | | | | | | | | | | * fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry
* printing/nt_printing.c: (From JF) use the driver name - already given to us.Jeremy Allison2000-07-061-16/+23
| | | | | | | | printing/printing.c: priority needs to be 1 not zero (found by checked build). rpc_server/srv_spoolss_nt.c: Log invalid handle access, also print out if this is a different pid handle. This will help track down client access after a connection is closed. Jeremy.
* Moved authenticated pipe user details into a current_user struct.Tim Potter2000-07-061-1/+1
|
* Moved printer ACE mask values from nt_printing.h to rpc_spoolss.hTim Potter2000-07-062-9/+6
|
* Include nss.h if present or define enough values to allow client access toTim Potter2000-07-061-0/+15
| | | | winbind.
* Added global_sid_NULL S-1-0-0 to list of global sids.Tim Potter2000-07-061-0/+1
|
* new protosAndrew Tridgell2000-07-061-1/+0
|
* don't need shmem any moreAndrew Tridgell2000-07-062-34/+0
|
* Some more sec_ctx changes. Modified some fields in the pipe_structTim Potter2000-07-032-18/+19
| | | | | structure so authenticated pipe users can have their unix groups set when become_authenticated_pipe_user() is called.
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-037-105/+353
| | | | | | | | | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. The changes to the header files were minor. A few struct's and a few additional fields to existing ones. No deletions. **minimal change necessary** :-) Well, maybe not minimal, but I tried. All other programs compile, link and run ok from what I can tell so I don;t think I broke anything. --jerry
* Changing drivers using the properties page works - but only if getting/settingJeremy Allison2000-06-261-384/+384
| | | | | | | | | | security descriptors is disabled (as it is in this code). If get/set sd's is enabled spooler.exe crashes on NT. I'll investigate and fix that issue next. Jeremy.
* make protoTim Potter2000-06-231-0/+41
|
* Added parenthesis around definition of PRINTER_ACE_PRINT.Tim Potter2000-06-231-1/+1
|
* make protoTim Potter2000-06-231-386/+393
|
* Added MAX_SEC_CTX_DEPTHTim Potter2000-06-231-0/+2
|
* Changed enumports to show printernames as ports. In line with 'the grand ↵Jeremy Allison2000-06-221-1/+1
| | | | | | | plan' :-) Gerald & I discussed with HP. More changes to follow. Jeremy.
* lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison2000-06-221-386/+384
| | | | | | | | | 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.
* A neater way of solving the S_ISSOCK, S_ISFIFO problem.Tim Potter2000-06-212-47/+54
| | | | Moved the S_* macros from smb.h to includes.h
* Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison2000-06-201-2/+1
| | | | | memory fixes. Jeremy.
* Fixes for IRIX kernel oplocks and systems that don't have nss.hJeremy Allison2000-06-201-0/+3
| | | | Jeremy.
* Whoops - dodgy make proto.Tim Potter2000-06-161-1/+1
|
* make protoTim Potter2000-06-161-403/+416
|
* Changed function prototype for pipe api functions to take a pipes_structTim Potter2000-06-161-1/+1
| | | | instead of two prs_data pointers.
* Added some permission constants that are set for NT printer securityTim Potter2000-06-161-0/+7
| | | | | descriptors. These seem to be made up of the standard and generic access rights rather than object specific access rights.
* added support for kernel level share modes. These are a (small) hack,Andrew Tridgell2000-06-152-0/+10
| | | | | I suspect we will either get rid of them or do them properly at some stage.
* #include nsswitch/winbind_nss.hTim Potter2000-06-141-0/+2
|
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-143-1/+3
|
* proto updateAndrew Tridgell2000-06-131-1/+7
|
* fixed the change notify bit definitionsAndrew Tridgell2000-06-131-1/+2
|
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-124-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* split all the change notify code out into a separate moduleAndrew Tridgell2000-06-121-16/+11
| | | | | | | | smbd/notify.c. All the data structures are now private to that module. this is in preparation for Linux kernel support for change notify (coming soon to a CVS tree near you)