summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added John Reillys patch for error code returns from ↵Jeremy Allison2000-10-263-7/+10
| | | | | | | clean_up_printer_driver_strunct() calls. Jeremy.
* Sorry JF - no billable hours :-). I fixed the "stream of events" problemJeremy Allison2000-10-264-22/+49
| | | | | | | | | with PCL drivers. The problem was we were updating the changeid on every SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should just update the 'setprinter' called count. We update the changeid on calls to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning of the create time on printers. Jeremy.
* TDB password backend support written by Simo Sorce <simo.sorce@polimi.it>Gerald Carter2000-10-2610-652/+1324
| | | | | | | | | | Marked as an experimental compile time option (defaults to off) for now. jerry
* Even when looking up a users groups via winbindd even if the lookup forJeremy Allison2000-10-251-2/+2
| | | | | | | | the list of groups a user is in succeeds via winbind, we must allow the lookup of the group name -> gid we are checking if the user is a member of to go via winbind or /etc/group - as it may be a group on the local box we are checking against. This is a subtle one..... Jeremy.
* We already have a perfectly good next_token() function we should be usingJeremy Allison2000-10-251-6/+3
| | | | | | | instead of strtok - this fixes a bug with NT users with spaces in their names when using winbindd. Needs to be added to the other parse_lpXX functions (currently only added to lprng parsing code). Jeremy.
* Fix for uidtoname not returning DOMAIN\name but just name. This causedJeremy Allison2000-10-251-2/+9
| | | | | printer_access_check to break in a domain environment. Jeremy.
* John Reilly @ HP (who is a wonderful human being and *definately* needsJeremy Allison2000-10-253-56/+189
| | | | | | | | CVS commit access :-) has written a simple routine that peeks inside the MS PE printer driver file format and can tell if a driver is W2K or NT4.x. So we can now correctly return the driver version number. Hurrah ! JF - this is the code you always wanted ..... :-) :-). Jeremy.
* added some clarifications.Gerald Carter2000-10-251-5/+22
| | | | jerry
* Removed erroneous +1's on length of unicode domain names for variousTim Potter2000-10-251-2/+2
| | | | functions in the \\lsarpc pipe.
* Yeah - not setting getwd_cache to True as default, that'd do it for a 5xJeremy Allison2000-10-241-1/+1
| | | | | | performance hit..... :-) :-). Jeremy. PS. Yes this was my fault for everyone who wants to throw rotten fruit...
* Small change to process of joining a domain with samedit.Tim Potter2000-10-223-3/+6
|
* Fixes from David Lee for utmp handling.Jeremy Allison2000-10-214-495/+1137
| | | | Jeremy.
* Fix for vfs_fstat() crash with new stat code.Jeremy Allison2000-10-201-0/+3
| | | | Jeremy.
* Merge from appliance-headTim Potter2000-10-201-1/+5
|
* Fixed missing bracket on debug statement.Tim Potter2000-10-191-1/+1
|
* Ok - this is a big patch - and it may break smbd a bit (althoughJeremy Allison2000-10-199-234/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | I hope not). If you encounter strange file-serving behavior after this patch then back it out. I analysed our stat() usage and realised we were doing approx. 3 stat calls per open, and 2 per getattr/setattr. This patch should fix all that. It causes the stat struct returned from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT pointer) to be passed through into the open code. This should prevent the multiple stats that were being done so as not to violate layer encapsulation in the API's. Herb - if you could run a NetBench test with this code and do a padc/par syscall test and also run with the current 2.2.0 code and test the padc/par syscalls I'd appreciate it - you should find the number of stat calls reduced - not sure by how much. The patch depends on unix_convert() actually finding the file and returning a stat struct, or returning a zero'd out stat struct if the file didn't exist. I believe we can guarentee this to be the case - I just wasn't confident enough to make this an assertion before. Ok ok - I did write this whilst at the Miami conference..... sometimes you get a little free time at these things :-). Jeremy.
* Removed null user checks to enable lanman print queue pausing and print jobTim Potter2000-10-181-4/+0
| | | | deleting.
* Renamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pauseTim Potter2000-10-181-4/+4
| | | | or resume a print queue.
* Bug report that on some systems extended characters are being returned asChristopher R. Hertel2000-10-181-1/+2
| | | | | | | | | | | negative values from the mygetc() function. I've modified the return line so that it should return values in the 0..255 range for legitimate characters. This change should probably be copied into SAMBA_2_2 but I haven't checked that tree out yet. Chris -)-----
* Merge of rpc parse buffer underflow debug code.Tim Potter2000-10-181-0/+19
|
* Fixes for io_q_setprinter rpc parsing.Tim Potter2000-10-181-0/+10
|
* Added documentation for winbind enum users and winbind enum groupsTim Potter2000-10-173-0/+73
| | | | configuration parameters.
* get rid of $Revision string - sync with 2.2 branchHerb Lewis2000-10-162-3/+0
|
* Fixes to get ms-dfs code to compile with the new changes.Jeremy Allison2000-10-131-2/+3
| | | | Jeremy
* Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).Jeremy Allison2000-10-131-1/+1
| | | | Jeremy.
* last part of W2K support.Jean-François Micouleau2000-10-139-51/+97
| | | | | | | | | | | | the trust domain list reply on netlogon pipe was wrong, interim hack until we have full trust relationships. changed some unistr2 to parse the ending NULL char. added a prs_align_needed() function. much like a prs_align but with a condition. needed for the unistr2 parsing. J.F.
* Fixed merging mess.Tim Potter2000-10-131-1/+22
|
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-138-253/+457
| | | | | | | | falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Also changed GETDC to query 1C name rather than 1b name as only the PDC registers 1b. Jeremy.
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-131-2/+2
| | | | | | falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Jeremy.
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-122-5/+24
| | | | Jeremy.
* allow "master" smbd to call message_init so it is not killed by messagesHerb Lewis2000-10-121-4/+4
| | | | | | sent to it's PID Jeremy or Andrew please check this out for other possible side effects.
* update man page for program changesHerb Lewis2000-10-123-15/+52
|
* lib/messages.c add debug print for receipt of PING andHerb Lewis2000-10-122-1/+4
| | | | | | REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init.
* use macros for incrementing profile countersHerb Lewis2000-10-122-6/+2
|
* print source PID in PONG and debuglevel message. Allow request debuglevelHerb Lewis2000-10-121-10/+30
| | | | | | message to go to any dest. Put timeout for commands that expect a reply. sync with 2.2 branch
* Turns out we do need the pwnam check as on many systems the usersJeremy Allison2000-10-111-0/+7
| | | | | primary group is not listed in the groups file... Jeremy.
* Fixed %d printf with unsigned long arg.Jeremy Allison2000-10-111-1/+1
| | | | Jeremy.
* Use sys_setgroups - systems with broken getgroups need this.Jeremy Allison2000-10-111-1/+1
| | | | Jeremy.
* Simple cleanup, but I also changed the value of the dlevel parameter passedChristopher R. Hertel2000-10-111-5/+5
| | | | | | | | | | to open_socket_in() from within the open_sockets() function. This has some effect on the way port numbers are assigned. Basically, if we use the -r switch we are saying 'use port 137'. If we can't do that, there should be an error message and a failure. If we don't use -r then we simply select the first available port. The way it was working, if we selected -r and port 137 was in use, wierd things would happen as open_socket_in() tried to find another port.
* Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()Christopher R. Hertel2000-10-111-4/+4
| | | | | | | | | | | | | | | | | | | | when looking up the WINS server address. Please *don't* use lp_wins_server() any more! The wins_srv_ip() function has the following features: - If the WINS server was entered as a DNS name then the translation to an IP address will already have taken place. We used to do this every time a call to the WINS server was made. Ick. - The return value of wins_srv_ip() is a struct in_addr. Ready to go. - When WINS failover is fully implemented, you'll be able to enter a colon- separated list of WINS servers via the WINS SERVER parameter. Using lp_wins_server() directly will fail if this syntax is used. Chris -)-----
* Try this again on the right machine. Adding files for PCP samba pmdaHerb Lewis2000-10-119-0/+2714
|
* Renamed WINBINDD_INITGROUPS constant to WINBINDD_GETGROUPS.Tim Potter2000-10-113-3/+3
|
* sync with 2.2. treeHerb Lewis2000-10-111-1/+1
|
* changes to sync with 2.2. treeHerb Lewis2000-10-1114-47/+205
| | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command
* Modified initgroups to provide a get groups a user is a member ofTim Potter2000-10-112-7/+166
| | | | | | functionality. This is much faster than inverting the group database. Added client side command for this to wbinfo.
* Don't initialise groups twice.Tim Potter2000-10-112-2/+0
|
* Remove duplicate group initialisation function.Tim Potter2000-10-111-22/+0
| | | | Don't initialise groups twice.
* Fix to avoid calling getgrgid for no reason.Jeremy Allison2000-10-111-21/+9
| | | | Jeremy.
* Fix for growing printing.tdb by adding check on job creation.Jeremy Allison2000-10-114-17/+56
| | | | | This also updates the printing.tdb db version to 2. Jeremy.
* Remove lpq as root fix - do this in print_job_start insteadJeremy Allison2000-10-114-39/+0
| | | | | as part of print queue length processing. Jeremy.