summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* Changed Major/Minor version info reported to Server Manager to 4.9.John Terpstra2002-09-161-8/+12
| | | | | Added new SWAT Flags for Advanced and Developer modes. (This used to be commit 0250e2c52c7d7aa25308b6c20b8e2a51184cb598)
* Make current_sam_methods a const - Patch by Kai KrügerJelmer Vernooij2002-09-151-3/+3
| | | | (This used to be commit bd7245dc6fcff805fcb69f6bd1f4852dadf5aa84)
* Updated some comments in the NET_USER_INFO_3 structure for the other_sidsTim Potter2002-09-131-3/+3
| | | | | field. (This used to be commit d153d692a0f8499e1d6dac791a4d119cd9c15e45)
* Changed profile version number to 7 - added sendfile statistics.Jeremy Allison2002-09-121-1/+1
| | | | | Jeremy. (This used to be commit 2d080d7579c0a59bcb03608600c6b28243bbe353)
* First cut at portable sendfile code. Only used in readX at the momentJeremy Allison2002-09-121-0/+3
| | | | | | | | | and doesn't actually call sendfile. Needs to be vectored through the VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux). Linux doesn't actually work (2.4.19 kernel) at the moment because it doesn't have a 64-bit clean sendfile. Jeremy. (This used to be commit fd772ca7b16cd86e0d50c7ed8d537c202976a6d2)
* Ensure we've failed a lock with a lock denied message before automaticallyJeremy Allison2002-09-111-6/+9
| | | | | | pushing it onto the blocking queue. Jeremy. (This used to be commit 237e36124cedf0485deaff81f34688fa862c3317)
* change notify merge from APP_HEADGerald Carter2002-09-101-2/+14
| | | | (This used to be commit b5227f0a645fdf2358fcb880f22e4662efdfe8e3)
* Merged Steve French's fix for OS/2 EA return error being removed.Jeremy Allison2002-09-091-9/+12
| | | | | Jeremy. (This used to be commit af2168c0344d49041b1fe78cd5219ac50308deb3)
* Patch from Kai Krüger for the new SAM systemJelmer Vernooij2002-09-081-2/+9
| | | | (This used to be commit 771878a2d94009b6eccef5f98d4e782cd85c291e)
* Winbind client-side cleanups.Andrew Bartlett2002-09-072-2/+2
| | | | | | | | | | | | | | | | | | | The global winbind file descriptor can cause havoc in some situations - particulary when it becomes 0, 1 or 2. This patch (based on some very nice work by Hannes Schmidt <mail@schmidt-net.via.t-online.de>) starts to recitfy the problem by ensuring that the close-on-exec flag is set, and that we move above 3 in the file descriptor table. I've also decided that the PAM module can close it's pipe handle on every request - this isn't performance-critical code. The next step is to do the same for nss_winbind. (But things like getent() might get in our way there). This also cleans up some function prototypes, puts them in just one place. Andrew Bartlett (This used to be commit 442eb39657b98f67cd229ed3110b63aae8bf4e3c)
* As per the 'OK' at CIFS2002, only use the readline headers (and this crasyAndrew Bartlett2002-09-061-18/+0
| | | | | | | | | #ifdef mess...) in readline.c, we don't need or use them in the rest of Samba. (This OK was of course conditional on 'if you break it, you better fix it...') Andrew Bartlett (This used to be commit 55ee289f587f107fa03c5f889491fdaab101df2d)
* Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to theAndrew Bartlett2002-09-061-2/+5
| | | | | SAM_ASSERT if we are not going to crash. (This used to be commit f91fcb166107e45ffb3de95a3da65c79992341eb)
* This commit includes part of the patch from metze posted to the list, and a fewAndrew Bartlett2002-09-061-30/+46
| | | | | | | | | | | | | | | | | | | | | | of my own changes. In particular: I've added a SAM_ASSERT macro. This expands to either SMB_ASSERT() (which should help us track down bugs) or a return of NT_STATUS_CHECK_FAIL. Metze's changes are mostly to bring the code into line with current discussions on things like adding users/groups, flags etc. I've adjusted a fair bit of the 'const' in the SAM stuff. Const is currently used only for pointers, not for local variables or non-pointer paramters. The benifits and reasons for extending this further need discussion on samba-technical. Also, some of the 'context' paramters should not be const, to allow backend modules to do fancy caching etc in them. Andrew Bartlett (This used to be commit e13bc432628a6131be082caedc75cd8a3d206e5a)
* patch from metze: add a 'vfs' debug classAndrew Bartlett2002-09-061-1/+1
| | | | (This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
* Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>Andrew Bartlett2002-09-061-21/+103
| | | | | | | | | | | | | | to extend the ADS_STATUS system to include NTSTATUS, and to provide a better general infrustructure for his sam_ads work. I've also added some extra failure mode DEBUG()s to parts of the code. NOTE: The ADS_ERR_OK() macro is rather sensitive to braketing issues - without the final set of brakets, the test is essentially inverted - causing some intersting 'error = success' messages... Andrew Bartlett (This used to be commit 5b9a7ab901bc311f3ad08462a8a68d133c34a8b4)
* Detect and use syslog.h or sys/syslog.h corretly. Fixes lack of prototype forAndrew Bartlett2002-09-062-2/+12
| | | | | syslog() since Paul Green's POSIX patch. (This used to be commit d3b29b0b2d2ffd5c050900ff8cae441b91f95526)
* Move the fancy NT_STATUS macros to a new file, so we can include them earlierAndrew Bartlett2002-09-053-38/+63
| | | | | | | in includes.h Andrew Bartlett (This used to be commit ed184ed1905b49956528b6835f48a69ba3c1a045)
* Added better error code on out of space. Removed total jobs check - notJeremy Allison2002-09-041-5/+8
| | | | | | applicable any more. Jeremy. (This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
* Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison2002-09-043-4/+9
| | | | | | | sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
* Change JOB_INFO_CTR to return a pointer to an array rather than array of ā†µTim Potter2002-09-031-2/+2
| | | | | | pointers. (This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)
* small typo, kai is german :-)Volker Lendecke2002-09-021-1/+1
| | | | (This used to be commit f435bf0095694a283db47e33c9eb1b5b6df13d03)
* convert the LDAP/SASL code to use GSS-SPNEGO if possibleAndrew Tridgell2002-08-301-5/+1
| | | | | | | | | | | | | | | | | we now do this: - look for suported SASL mechanisms on the LDAP server - choose GSS-SPNEGO if possible - within GSS-SPNEGO choose KRB5 if we can do a kinit - otherwise use NTLMSSP This change also means that we no longer rely on having a gssapi library to do ADS. todo: - add TLS/SSL support over LDAP - change to using LDAP/SSL for password change in ADS (This used to be commit b04e91f660d3b26d23044075d4a7e707eb41462d)
* Put in patch from metze (Stefan Metzmacher) to:Jelmer Vernooij2002-08-291-141/+135
| | | | | | | - Rename user -> account - Add sam_* functions (api.c) - Several small fixes (This used to be commit eafcc387045f4f265631a952297caf3f6db779d8)
* Return correct FILE_SUPERSEDED response - IFSTEST strikes again...Jeremy Allison2002-08-281-0/+1
| | | | | Jeremy. (This used to be commit df3e467eb7cce059782870bfec222293577c4f69)
* Silly of me to only test this with --with-sam and not without. Doh!Jelmer Vernooij2002-08-281-2/+0
| | | | (This used to be commit 6395c34f2f981d59b761d8615851a8fd54c1c304)
* Put in intermediate version of new SAM system. It's not stable yet, codeJelmer Vernooij2002-08-284-3/+267
| | | | | | | | | | might be ugly, etc - please don't blame me for anything but instead try to fix the code :-). Compiling of the new sam system can be enabled with the configure option --with-sam Removing passdb/passgrp.c as it's unused fix typo in utils/testparm.c (This used to be commit 4b7de5ee236c043e6169f137992baf09a95c6f2c)
* Header file change from last commit.Andrew Bartlett2002-08-261-0/+1
| | | | (This used to be commit a760bca56a55b119cf399c5ac6f8b0db418be2e0)
* Merged initial allocation code for IFSTEST fix.Jeremy Allison2002-08-233-2/+3
| | | | | Jeremy. (This used to be commit 095e2bf9469a4c26814fb049f2870983c090ed81)
* Added some new delta types discovered by Ronnie from ethereal"Tim Potter2002-08-221-23/+28
| | | | | | | | | | | - SAM_DELTA_RENAME{USER,GROUP,ALIAS} - SAM_DELTA_DELETE{USER,GROUP} Renamed some of the unknown delta types and their unmarshalling functions: - SAM_DELTA_TRUST_DOMS - SAM_DELTA_SECRET_INFO (This used to be commit 1f29276c2ff450c4ca3705c27fb0be71ddcda4ad)
* typos typos :)Simo Sorce2002-08-221-2/+0
| | | | (This used to be commit 78cfbebc69fb15326d8f6dbbce1090c301a1f270)
* Spelling fixes.Tim Potter2002-08-221-5/+7
| | | | (This used to be commit 9b49d97b94a7e3842cdcbfa4ebfa961586857aea)
* NETLOGON NetServerAuthenticate3 include and parser fileJean-FranƧois Micouleau2002-08-211-11/+30
| | | | | J.F. (This used to be commit 2f68d6f5ec925f07a387f784db6de0cfbaa53278)
* Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij2002-08-211-0/+4
| | | | (This used to be commit addf29e6765393b25c35bd833d29e29e4581c233)
* Handle wrap-around on this number by making it unsigned.Andrew Bartlett2002-08-211-1/+1
| | | | | | | (Wrapping to zero does not create problems in this cache) Andrew Bartlett (This used to be commit c58e3d5c7d78dd02584b1490a27f7007e11b8712)
* IFSTEST fixes for open fid, nametoolong.Jeremy Allison2002-08-201-11/+12
| | | | | Jeremy. (This used to be commit e53a81261ed189881c0f07e1b46f97aa6770cab7)
* cannot use casts in the DLIST_xxx macrosHerb Lewis2002-08-201-1/+1
| | | | (This used to be commit c9ffc416aeee2610fdc896a9d41dac182039a5f9)
* Based orginally by work by Kai, this patch moves our NT_TOKEN generation intoAndrew Bartlett2002-08-202-4/+5
| | | | | | | | | | | | | | | | our authenticaion code - removing some of the duplication from the current code. This also gets us *much* closer to supporting a real SAM backend, becouse the SAM can give us the right info then. This also changes our service.c code, so that we do a VUID (rather than uid) cache on the connection struct, and do full NT ACL/NT_TOKEN checks (or cached equivilant) on every packet, for the same r or rw mode the whole share was open for. Andrew Bartlett (This used to be commit d8122cee059fc7098bfa7e42e638a9958b3ac902)
* the SMBD_SELECT_TIMEOUT_WITH_PENDING_LOCKS macro isn't needed any moreAndrew Tridgell2002-08-191-1/+0
| | | | (This used to be commit 341bb9fb78a2e750f05a902e020ba352e26ca030)
* we now receive and parse the main cldap netlogon reply.Andrew Tridgell2002-08-191-0/+1
| | | | | we still need to parse the core of the structure (This used to be commit 6780ae25bf7ca291f612682dec7ee7ff44c24bef)
* * fix Get/SetPrinterDataEx() to work with printer key otherGerald Carter2002-08-181-0/+1
| | | | | | | | than SPOOL_PRINTERDATA_KEY * created an internal set/get_printer_dataex() call for reuse in Set/GetPrinterData() (This used to be commit 4eb8ffba032971cf83a0fcec7ca3730b4ded0bf0)
* preparing for release of 3.0-alpha19Samba Release Account2002-08-171-1/+1
| | | | (This used to be commit 227472286f479bddfac7ea958b779fc4459a9e1e)
* preparing for release of 19Samba Release Account2002-08-171-1/+1
| | | | (This used to be commit be5a649ed4c06aa1ffb709f1d3ff8ed26919bf1c)
* fix seg fault in _spoolss_enumprinterkey after changes...Gerald Carter2002-08-171-0/+1
| | | | | add SPOOL_PNPDATA_KEY define (This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)
* Fairly large change to printing code.Gerald Carter2002-08-161-10/+21
| | | | | | | | | | | | | | | | | | | | * removed support for PHANTOM_DEVMODE printer data * s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit of work. Everything seems stable, but is not complete. * support for printer data keys other than PrinterDriverData in the store and fetch routines. Still needs to be plugged into the XxxPrinterDataEx() calls. Tested against NT4.0 & 2k. Like I said, it's not done, but doesn't crash so it shouldn't upset anyone (unless you're trying to build a Samba printer server off of HEAD). More work to come. Should settle by Monday. jerry (This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
* Rename unknown_0 field in create_user2 reply in the actual struct.Tim Potter2002-08-151-30/+23
| | | | | Remove 9th place leading zero from some constants. (This used to be commit 876e7b2bf45aad40282fd0ccddadf01df23d8d41)
* printing change notification merge from APPLIANCE_HEADGerald Carter2002-08-082-6/+9
| | | | (This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
* Add 'const' to the function prototypes to match the recent commit.Andrew Bartlett2002-08-071-2/+2
| | | | (This used to be commit 0118e459b603a991f23d48cfd7f5e68c4374f950)
* Add AD version of samlogon replies for getdc. ATM it will only functionJim McDonough2002-08-062-0/+24
| | | | | if you have an ADS DC. (This used to be commit 059a352ebb7c7286d205bc86a92f5fd26ab1ff8e)
* Add SAMR 0x3e, which is samr_connect4. Seems to be the same as ourJim McDonough2002-08-061-1/+18
| | | | | | existing connect (which I've been told is really connect2), with one extra dword. We've only seen 0x00000002 there... (This used to be commit 266344634944dff30f56453f9d86c490e7ac7a55)
* This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell2002-08-051-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setups. - split up the ads structure into logical pieces. This makes it much easier to keep things like the authentication realm and the server realm separate (they can be different). - allow ads callers to specify that no sasl bind should be performed (used by "net ads info" for example) - fix an error with handing ADS_ERROR_SYSTEM() when errno is 0 - completely rewrote the code for finding the LDAP server. Now try DNS methods first, and try all DNS servers returned from the SRV DNS query, sorted by closeness to our interfaces (using the same sort code as we use in replies from WINS servers). This allows us to cope with ADS DCs that are down, and ensures we don't pick one that is on the other side of the country unless absolutely necessary. - recognise dnsRecords as binary when displaying them - cope with the realm not being configured in smb.conf (work it out from the LDAP server) - look at the trustDirection when looking up trusted domains and don't include trusts that trust our domains but we don't trust theirs. - use LDAP to query the alternate (netbios) name for a realm, and make sure that both and long and short forms of the name are accepted by winbindd. Use the short form by default for listing users/groups. - rescan the list of trusted domains every 5 minutes in case new trust relationships are added while winbindd is running - include transient trust relationships (ie. C trusts B, B trusts A, so C trusts A) in winbindd. - don't do a gratuituous node status lookup when finding an ADS DC (we don't need it and it could fail) - remove unused sid_to_distinguished_name function - make sure we find the allternate name of our primary domain when operating with a netbiosless ADS DC (using LDAP to do the lookup) - fixed the rpc trusted domain enumeration to support up to approx 2000 trusted domains (the old limit was 3) - use the IP for the remote_machine (%m) macro when the client doesn't supply us with a name via a netbios session request (eg. port 445) - if the client uses SPNEGO then use the machine name from the SPNEGO auth packet for remote_machine (%m) macro - add new 'net ads workgroup' command to find the netbios workgroup name for a realm (This used to be commit e358d7b24c86a46d8c361b9e32a25d4f71a6dc00)