summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-05-22Fix a silly memory (getpnam_alloc()) leak spotted by Elrond, and moveAndrew Bartlett3-95/+119
the DATA_BLOB code into its own file. It would be nice to go over some of the other util.c functions, and check that we still use them all, and that we use them in more than one place. Andrew Bartlett (This used to be commit d0ea70fce55df9a5b5878f50fce7bc115ffb37c2)
2002-05-22Commit the header file for the LDAP/secrets changesAndrew Bartlett1-0/+2
(This used to be commit 5512618d3493a04c84a43beaa752c307bce146fc)
2002-05-22Updates for sane storage of ldap root DN passwords (tested, with upgradeAndrew Bartlett2-44/+120
from 2.2 format) and LDAP rebind support (untested, I don't have a setup to match). Andrew Bartlett (This used to be commit 4f7ba78c9d50ac584497dcf1d78ce613112742d4)
2002-05-22auto-recover from the fairly common case of a non-clean tdb shutdownAndrew Tridgell1-0/+10
while deleting a record. This leaves us with a non-free record on the free list. (This used to be commit e99b6a2b91e4022ce0a9a14415df71314b5e013f)
2002-05-22Merge of receive_local_message fix from 2.2.5.Jeremy Allison4-51/+35
Jeremy. (This used to be commit d4dbb9cb1338332bda3651dc4b86abcf47e9c2d2)
2002-05-22Added a reminder about programs using the tdb bindings having to beTim Potter1-0/+8
licensed under the GPL. (This used to be commit aa3ec7618fe39ddc75755098433572b271197af4)
2002-05-21Failing to find an entry when doing mod_share_entry isn't a errorJeremy Allison1-3/+4
condition, as we look for the entry before locking the chain - thus someone else could have legitimately deleted it. Jeremy. (This used to be commit bd64a291a8df63a6e0f9e166ad9ea7d92adbb4d5)
2002-05-21Tricky fix. If we were waiting for an oplock break response message fromJeremy Allison1-0/+11
another smbd and an incoming SIGUSR1 message arrived we'd break out of the wait early - as we have to use sys_select() to wait for an oplock response message, not sys_select_intr() (which ignores EINTR errors) because of the real time signal kernel interface. Jeremy. (This used to be commit 3bb26957e3e7fb5059d21115546d189eaca34646)
2002-05-21typo day :-(Simo Sorce1-1/+1
(This used to be commit 5b3b65aafe38e767e9b7206ffe6d7c89edb267ba)
2002-05-21typo, sorrySimo Sorce11-11/+11
(This used to be commit d222bc8c4b620095a21ba327940d4750d5dee753)
2002-05-21uhh, forgot to commit the DBGC_WINBIND definition :-)Simo Sorce1-11/+11
(This used to be commit efb119fb88a511e026239773422242fff636ae13)
2002-05-21debug classizedSimo Sorce15-0/+45
(This used to be commit ae5d24873ad0fb3df970cc9912e18e6a5067ae2d)
2002-05-21A tdb module based on some tips from Mike Noriega. This version supportsTim Potter3-0/+644
locking and tdb traversal using python callbacks. (This used to be commit f3530fd6180bb78a58a3f41ac1389c9f0ba7b183)
2002-05-20Stop smbd looping when hide unreadable is true and .. is unreadable.Jeremy Allison1-65/+72
Jeremy. (This used to be commit fda7a11b093315a77ca1199119b5421a029ee883)
2002-05-20Merge from 2.2.Jeremy Allison2-2/+3
Jeremy. (This used to be commit 174df5d914b149e52bf260e6502f2436c2720958)
2002-05-20merge from SAMBA_2_2Gerald Carter1-1/+1
(This used to be commit 2424578c298ea11f67415bcfe2928353cd95819b)
2002-05-20Remove level and name fields from dictionary copy in py_to_FORM()Tim Potter1-4/+9
(This used to be commit ac15442579848f145dbdce6d51207321c4150c25)
2002-05-20py_to_DRIVER_INFO_3: remove level key on copy of dictionary before callingTim Potter1-2/+7
to_struct(). (This used to be commit 274679d8ce33aaf664ffaaa6834d506f7b196fc6)
2002-05-20Decode info level 3 for getprinterdriver.Tim Potter1-1/+5
Error checking for undecoded info levels. (This used to be commit 841b6cf63c1f22dcb8fa07796a44e20555fe5b59)
2002-05-20When converting from a dictionary to a Samba structure, check for anyTim Potter1-2/+30
additional keys that may have been added and return False if so. (This used to be commit 96ccb2beb1d45f8122ff03fc2f7727bf065adbf6)
2002-05-20Set level key in driver info structures.Tim Potter1-1/+5
(This used to be commit 0caf7610dcf698d2c649e42f0630de4337cfcea2)
2002-05-20OK that last commit was incorrect - this call is parsed properly. I onlyTim Potter1-4/+0
imagined it wasn't! (This used to be commit bbad6c6678c89a33fb233091f5965ccd1aa589f6)
2002-05-20There's probably a pointer to a buffer at the end of a enumprinterdrivers()Tim Potter1-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. (This used to be commit 2429c4cc796576aa2d816a14b10fdd932b672a02)
2002-05-20No need to pass a fstring in make_spoolss_q_enumprinters()Tim Potter1-1/+1
(This used to be commit 1fb8e2b3a07fdc0bb302f02a451ed32a275f0c10)
2002-05-19Spelling fix.Tim Potter1-1/+1
(This used to be commit 37f1cd013da073ca23fd9b16ee8cfbf9a3e6cbd9)
2002-05-19Patch to only set SV_TYPE_PRINTQ_SERVER in default_server_announce if aTim Potter2-1/+12
print share is exported. Needs some more testing. (This used to be commit 92b36482fd6aa5103c30dad40fe799c07dd2d8d7)
2002-05-19Fixed compiler warning.Tim Potter1-1/+1
(This used to be commit 793d9306e29ddd23e3f52736b5cd558b5d058611)
2002-05-19A small change to print out the error message only if we could not check theRichard Sharpe1-4/+5
secrets ... (This used to be commit 56eea2623a8a8f2a5a0311cda6d0282d0037a3cc)
2002-05-19Keep the compiler happyAndrew Bartlett2-2/+1
(This used to be commit 84ea2a434b510ed49838a04a4b30bd2fc9ec5673)
2002-05-18so here it is the code to introduce seriously debugggging classes.Simo Sorce16-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 (This used to be commit be5c3b3f5781ddc002ffcc98df04ab024dcef4ca)
2002-05-18Remove unused files.Andrew Bartlett5-806/+7
The size of samba going down for once :-) Andrew Bartlett (This used to be commit 00ef4aad88f4ba9f2e242578c37933eac001c351)
2002-05-18Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett3-60/+62
(only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett (This used to be commit 78f47c83332a6408a718a3dee45645935638b364)
2002-05-18Oops, I missed commiting this earlier.Andrew Bartlett1-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 (This used to be commit b014d9ae4bc38d83d474888b73d350a62704341f)
2002-05-18Remove const from some functions to match the changed prototype in aAndrew Bartlett2-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. (This used to be commit 7019486eacb72ca44c42ce620b8696bb29f12292)
2002-05-18Passdb:Andrew Bartlett3-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 (This used to be commit d78b74b338df9accd9ad84c56a49fa4f787425e2)
2002-05-18Include the extra #define for the last set of smbpasswd mods.Andrew Bartlett1-0/+1
(This used to be commit bf82ac14c826a765b33d368e4cb62c7fb3cd3c4f)
2002-05-18Make smbpasswd at least slightly sane. This kills off some of theAndrew Bartlett1-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 (This used to be commit d9330f10447f199a5a73803579ce3b1253f4d02c)
2002-05-18As per rsharpe's request, require only a Masters in Astrophysics toAndrew Bartlett2-16/+18
correctly configure winbind. (Next job: Fill in the 'error_msg' field with somthing useful) (This used to be commit 49ee2a25c131641887cbc438a6336652f042cfb0)
2002-05-18A few things in this commit:Andrew Bartlett20-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 (This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-17Don't forget the semicolon, you fool!Jim McDonough1-1/+1
(This used to be commit 1c9387330f776b9b96714f9c9c62087bbd32f7b6)
2002-05-17Make --with-ldapsam 'go away'. This is now a standard, stable, featureAndrew Bartlett7-913/+811
and there is no real reason for it to depend on more than the abilty to compile the code. (This used to be commit 64aaec137e39595e6e61b55eb525615683a1393c)
2002-05-17Fix usage of va_list passed as an arg. Use __va_copy before using itJim McDonough4-7/+42
when it exists. (This used to be commit 85ab07bdc1b2ce7b2c1b8197fad45124b1460dca)
2002-05-17This is meant to be accessed via the helper fn, not directly.Andrew Bartlett1-1/+1
(This used to be commit b84882a628b3f2f0890322f25694c1932aa3e5ec)
2002-05-17Make non-static for some later work (pushing the info3 across the winbindAndrew Bartlett1-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?) (This used to be commit e5b4331ffa99d769b062053d6afc4772355fa5b2)
2002-05-17Add a touch of constAndrew Bartlett1-1/+1
(This used to be commit 3e93b216ddba14592a0193664c5d6bcbef898f1a)
2002-05-17Check paramters for NULL.Andrew Bartlett1-0/+4
(This used to be commit 078e81530e9bc4e5f0b8e18aff0488386bce29a5)
2002-05-17Make Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault ratherAndrew Bartlett1-9/+31
than allow silent reuse of stale static buffer. Next step is to make this fn return that allocated buffer. (This used to be commit e1daf816f3d809d288313fe2db98b5a731c93a79)
2002-05-17indentAndrew Bartlett1-2/+2
(This used to be commit 173aac4a810782dddc85494c328a6917cb3fe0c2)
2002-05-17A few more trusted domains updates from mimir.Andrew Bartlett8-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 (This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)
2002-05-17Add an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.Jim McDonough1-0/+5
(This used to be commit 443ba282be79e2b7259950fffbd7fe9bb4cabf8c)