summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* patch from metze: add a 'vfs' debug classAndrew Bartlett2002-09-061-1/+1
|
* 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
* 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.
* 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
* Added better error code on out of space. Removed total jobs check - notJeremy Allison2002-09-041-5/+8
| | | | | applicable any more. Jeremy.
* 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.
* Change JOB_INFO_CTR to return a pointer to an array rather than array of ↵Tim Potter2002-09-031-2/+2
| | | | pointers.
* small typo, kai is german :-)Volker Lendecke2002-09-021-1/+1
|
* 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
* 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
* Return correct FILE_SUPERSEDED response - IFSTEST strikes again...Jeremy Allison2002-08-281-0/+1
| | | | Jeremy.
* Silly of me to only test this with --with-sam and not without. Doh!Jelmer Vernooij2002-08-281-2/+0
|
* 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
* Header file change from last commit.Andrew Bartlett2002-08-261-0/+1
|
* Merged initial allocation code for IFSTEST fix.Jeremy Allison2002-08-233-2/+3
| | | | Jeremy.
* 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
* typos typos :)Simo Sorce2002-08-221-2/+0
|
* Spelling fixes.Tim Potter2002-08-221-5/+7
|
* NETLOGON NetServerAuthenticate3 include and parser fileJean-François Micouleau2002-08-211-11/+30
| | | | J.F.
* Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij2002-08-211-0/+4
|
* 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
* IFSTEST fixes for open fid, nametoolong.Jeremy Allison2002-08-201-11/+12
| | | | Jeremy.
* cannot use casts in the DLIST_xxx macrosHerb Lewis2002-08-201-1/+1
|
* 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
* the SMBD_SELECT_TIMEOUT_WITH_PENDING_LOCKS macro isn't needed any moreAndrew Tridgell2002-08-191-1/+0
|
* 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
* * 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()
* preparing for release of 3.0-alpha19Samba Release Account2002-08-171-1/+1
|
* preparing for release of 19Samba Release Account2002-08-171-1/+1
|
* fix seg fault in _spoolss_enumprinterkey after changes...Gerald Carter2002-08-171-0/+1
| | | | add SPOOL_PNPDATA_KEY define
* 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
* 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.
* printing change notification merge from APPLIANCE_HEADGerald Carter2002-08-082-6/+9
|
* Add 'const' to the function prototypes to match the recent commit.Andrew Bartlett2002-08-071-2/+2
|
* Add AD version of samlogon replies for getdc. ATM it will only functionJim McDonough2002-08-062-0/+24
| | | | if you have an ADS DC.
* 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 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
* added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell2002-07-311-1/+3
| | | | | | | on both by default, and you can specify a list of ports to listen on either with "smb ports = " in smb.conf or using the -p option to smbd. this is needed for proper netbiosless operation.
* Add LSA RPC 0x2E, lsa_query_info2. Only level implemented is 0x0c, whichJim McDonough2002-07-302-0/+42
| | | | | is netbios and dns domain info. Also add code to set/fetch the domain GUID from secrets.tdb (although set is not yet called by anyone).
* net ads info now reports the IP of the LDAP server as well as its name - ↵Andrew Tridgell2002-07-301-0/+1
| | | | very useful in scripts
* OK!Simo Sorce2002-07-302-5/+209
| | | | | | | | Finally the cascaded VFS patch is in. Testing is very welcome, specially with layered multiple vfs modules. A big thank to Alexander Bokovoy for his work and patience :) Simo.
* add another registry rpc (opnum 0x14). Have no idea what it's real nameGerald Carter2002-07-291-1/+24
| | | | | | | is. I'm calling it REG_SAVE_KEY, because 2k preps a regedt32.exe Registry->Save Key with this call. Done in the process of tracking down a PrinterDriverData issue.
* an initial fix for handling sparse files in smbdAndrew Tridgell2002-07-292-0/+27
| | | | | | | | This gets my test code working, where we previously failed with files above 20G in size. I'm still not completely happy with this. There are just too many fields in trans2.c that we don't fill in.
* Added extern for popt_common_debug.Tim Potter2002-07-291-0/+4
|
* Another item off my long-term todo list:Andrew Bartlett2002-07-282-3/+15
| | | | | | | | | Remove the n^2 search for valid 'tty' names from the sesion code when we don't actually need it. Its main value is in getting 'well behaved' numbers for use with utmp, so when we are not doing utmp we don't need this to get in the way. Andrew Bartlett
* A very long time ago (actually 6 months ago) I promised to commit this codeAndrew Bartlett2002-07-271-11/+105
| | | | | | | | | | | | | | | to the Samba tree. Originally written by Nigel Williams" <nigel@veritas.com>, I've been trying to keep it in some form of shape for the last 6 months. In particular I think some of the code got committed a few months ago, and others have made changes to the CVS version over time. anyway, its finally in - and doesn't appear to have broken anything. Now to try the client-side patches :-) Andrew Bartlett
* as per user request added windbind start/stop/restart in swatSimo Sorce2002-07-271-1/+1
| | | | almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
* I had forgotten to commit this after running configureAndrew Tridgell2002-07-251-0/+3
|
* done! printer_info_2, devicemode, sec_desc, & printer data all enumerateGerald Carter2002-07-241-13/+5
| | | | | | | | | and display correctly in regedit.exe. Not sure about REG_SZ values in PrinterDriverData. If we store these in UNICODE, I'll have to fix up a few things. REG_BINARY & REG_DWORD are fine.