summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove level and name fields from dictionary copy in py_to_FORM()Tim Potter2002-05-201-4/+9
|
* py_to_DRIVER_INFO_3: remove level key on copy of dictionary before callingTim Potter2002-05-201-2/+7
| | | | to_struct().
* Decode info level 3 for getprinterdriver.Tim Potter2002-05-201-1/+5
| | | | Error checking for undecoded info levels.
* When converting from a dictionary to a Samba structure, check for anyTim Potter2002-05-201-2/+30
| | | | additional keys that may have been added and return False if so.
* Set level key in driver info structures.Tim Potter2002-05-201-1/+5
|
* OK that last commit was incorrect - this call is parsed properly. I onlyTim Potter2002-05-201-4/+0
| | | | imagined it wasn't!
* There's probably a pointer to a buffer at the end of a enumprinterdrivers()Tim Potter2002-05-201-0/+4
| | | | | rpc call which we currently don't parse - just added a comment about it for the moment as not parsing it is harmless.
* No need to pass a fstring in make_spoolss_q_enumprinters()Tim Potter2002-05-201-1/+1
|
* Spelling fix.Tim Potter2002-05-191-1/+1
|
* Patch to only set SV_TYPE_PRINTQ_SERVER in default_server_announce if aTim Potter2002-05-192-1/+12
| | | | print share is exported. Needs some more testing.
* Fixed compiler warning.Tim Potter2002-05-191-1/+1
|
* A small change to print out the error message only if we could not check theRichard Sharpe2002-05-191-4/+5
| | | | secrets ...
* Keep the compiler happyAndrew Bartlett2002-05-192-2/+1
|
* so here it is the code to introduce seriously debugggging classes.Simo Sorce2002-05-1816-102/+368
| | | | | | | | | | | | | | | | | | this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too
* Remove unused files.Andrew Bartlett2002-05-185-806/+7
| | | | | | The size of samba going down for once :-) Andrew Bartlett
* Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett2002-05-183-60/+62
| | | | | | | | | (only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett
* Oops, I missed commiting this earlier.Andrew Bartlett2002-05-181-3/+3
| | | | | | | The idea is that pdb_add_sam_account() should have a non-const SAM_ACCOUNT, and update some of the the properties generated during the add. Andrew Bartlett
* Remove const from some functions to match the changed prototype in aAndrew Bartlett2002-05-182-10/+8
| | | | | | | previous commit, and remove some unsued variables. Main change: Make sure to fill in the username when making a non-unix account from smbpasswd.
* Passdb:Andrew Bartlett2002-05-183-48/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kill off the silly code that attempts to do NT -> Unix username mapping. This is done well before here, no need to repeat it. Add some small fixes and extra debugs, trying to track down current build farm failures. pdb_unix: When 'updating' a pdb_unix account, instead add it to the default passdb. This means that you don't need to specify '-a' to smbpasswd any more when messing with an existing unix user, the account is simply 'upgraded'. The idea here is that these accounts are just as 'real' as any other, they just don't have the extra attributes an smbpasswd file does. I'm open for debate on the pdb_unix issue, and will remove it if given good reason. (without this, an attempt to add an account already in pdb_unix to smbpasswd would fail, as it would fail to update pdb_unix). rpc_server/srv_netlog_nt.c Change a couple of things around, so as to show the client workstation etc. WRONG_PASSWORD is certainly not the right default error. Try ACCESS_DENIED for now. Andrew Bartlett
* Include the extra #define for the last set of smbpasswd mods.Andrew Bartlett2002-05-181-0/+1
|
* Make smbpasswd at least slightly sane. This kills off some of theAndrew Bartlett2002-05-181-43/+43
| | | | | | | | | | | | | silly global variables, and makes it come closer to a clean compile. I'm still not convinced what was wrong with the previous code, at least it didn't cause a gush of warnings... In any case, we now don't need to spegetti code gotos etc. This should really be redone with popt. Andrew Bartlett
* As per rsharpe's request, require only a Masters in Astrophysics toAndrew Bartlett2002-05-182-16/+18
| | | | | | correctly configure winbind. (Next job: Fill in the 'error_msg' field with somthing useful)
* A few things in this commit:Andrew Bartlett2002-05-1820-336/+642
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett
* Don't forget the semicolon, you fool!Jim McDonough2002-05-171-1/+1
|
* Make --with-ldapsam 'go away'. This is now a standard, stable, featureAndrew Bartlett2002-05-177-913/+811
| | | | | and there is no real reason for it to depend on more than the abilty to compile the code.
* Fix usage of va_list passed as an arg. Use __va_copy before using itJim McDonough2002-05-174-7/+42
| | | | when it exists.
* This is meant to be accessed via the helper fn, not directly.Andrew Bartlett2002-05-171-1/+1
|
* Make non-static for some later work (pushing the info3 across the winbindAndrew Bartlett2002-05-171-2/+3
| | | | | pipe for smbd to decode), and fix up the debug. (At least I assume it is wrong, can an expert care to comment?)
* Add a touch of constAndrew Bartlett2002-05-171-1/+1
|
* Check paramters for NULL.Andrew Bartlett2002-05-171-0/+4
|
* Make Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault ratherAndrew Bartlett2002-05-171-9/+31
| | | | | | than allow silent reuse of stale static buffer. Next step is to make this fn return that allocated buffer.
* indentAndrew Bartlett2002-05-171-2/+2
|
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-178-63/+113
| | | | | | | I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett
* Add an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.Jim McDonough2002-05-171-0/+5
|
* This removes --with-ssl from Samba.Andrew Bartlett2002-05-1717-1833/+812
| | | | | | | | | | | | | | | | | This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett
* Update the doco for the LDAP options in smb.conf, in line with code changesAndrew Bartlett2002-05-171-43/+29
| | | | | | | | a little while back. We might have to look at the migration path for these options. (or as --with-ldap has always been 'experimental' we could ignore it...) Andrew Bartlett
* more dl* -> sys_dl* for scoAndrew Bartlett2002-05-171-2/+2
|
* Makes winbindd_proto handling consistent with the other header files,Martin Pool2002-05-171-7/+19
| | | | | | | | | so that at least "make clean; make all" doesn't fail. It's still not safe for parallel builds, i.e. "make clean; make -j3 all" will probably crash, but "make clean; make proto && make -j3 all" seems OK. I'm not sure if it is possible to solve that and still support ancient non-GNU versions of Make.
* Get the sco boxes compiling again - use the sys_ intefaces for all the dl*Andrew Bartlett2002-05-172-2/+2
| | | | funcitons.
* NT sends the server name prepended with \\ for a enumerate printers RPCTim Potter2002-05-171-2/+2
| | | | call so we probably should as well.
* Changes to allow head to translate NMB flags ...Richard Sharpe2002-05-175-17/+59
|
* Use get_level_value() utility fn.Tim Potter2002-05-172-46/+18
| | | | Cleaned up some local variable naming.
* Add level field when converting FORM_1 to dict.Tim Potter2002-05-171-1/+17
| | | | More error checking when converting from dict to FORM_1.
* addform(), setform():Tim Potter2002-05-171-26/+44
| | | | | | | | | | - call get_level_value() utility function - removed unused keyword args - clean up handling of name arg to cli call deleteform(): - removed unused keyword args
* Call get_level_value() utility function.Tim Potter2002-05-171-21/+8
|
* Added a utility function to extract the info key from a dictionary.Tim Potter2002-05-172-0/+18
|
* to_struct() now returns a boolean which is false if not all the elements ofTim Potter2002-05-172-2/+7
| | | | the structure were present in the dictionary.
* Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even thoughJim McDonough2002-05-162-2/+2
| | | | | __va_copy wasn't defined, it compiled as though it were a function, but fails on a link. Oops.
* Add __va_copy to talloc functions. talloc_asprintf was causing all kindsJim McDonough2002-05-161-5/+24
| | | | of problems on Linux/390 systems...
* Add configure support for __va_copy, which is required on Linux/390 systemsJim McDonough2002-05-164-264/+309
| | | | | | | | when assigning on va_list to another, or when passing a va_list as an argument to a function. Not using it causes segv's and other unpredictable results. We need to check all over the place for this...