summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* Use avahi to register _smb._tcp in smbdVolker Lendecke2009-04-154-1/+187
| | | | (cherry picked from commit 55b7bf7338c13701944169df02ab8e9def6d43a1)
* Add tevent avahi bindingVolker Lendecke2009-04-154-4/+279
| | | | (cherry picked from commit 49fc1138b5e4dcf66b84a14ba47cc1da40c764f2)
* Add avahi detection to configureVolker Lendecke2009-04-152-0/+37
| | | | (cherry picked from commit b943e0083f6b0daa226f395158fcf7f467cdacd0)
* Disable dns_sd by defaultVolker Lendecke2009-04-151-2/+2
| | | | (cherry picked from commit 8cf21c9c7121049329f4d3e86d3021cdd2dec86a)
* ѕ3/winbind_pam: fix gcc 4.4 compile warningBjörn Jacke2009-04-151-1/+1
| | | | | (cherry picked from commit f4aec7b5907065a2f48d1b19065c6673aff6a190) (cherry picked from commit 11b3f0d8deb629489de4de29cedf518adc86d196)
* Fix connect to port 139 only -- thanks gd for bugging me :-)Volker Lendecke2009-04-151-4/+3
| | | | | (cherry picked from commit 298bff5019be5a40dc0023b5af1e980fba91abd9) (cherry picked from commit c96d0ffd944f536a1228812c761ba4fb4313ee05)
* Only build the dirsort module if we have the dirfd functionVolker Lendecke2009-04-151-2/+2
| | | | | Fix the build on HP/UX (cherry picked from commit 4a4c69d26526294aa6e9b98d34d8495fc3fc65e8)
* Use StrCaseCmp in the dirsort moduleVolker Lendecke2009-04-151-1/+1
| | | | (cherry picked from commit fcd02076d7562d2bc222dd15d2cd0a8fff58d5cf)
* Add dirsort moduleAndy Kelk2009-04-153-1/+201
| | | | (cherry picked from commit 2364bc8dcd46ca66e06e1dd8d4ed224611d65330)
* s3-spoolss: _spoolss_EnumPrinters level 3 always returns WERR_UNKNOWN_LEVEL.Günther Deschner2009-04-151-3/+0
| | | | | | Guenther (cherry picked from commit 19de802c171f70ec4de102452afac52e2c0e548f) (cherry picked from commit 8630f2cbdfaaf8260615f16ba360b1281b666df5)
* s3-spoolss: implement enumprinters_level4.Günther Deschner2009-04-151-1/+24
| | | | | | Guenther (cherry picked from commit d2de9b068c19a8eaac64f9cf4ea4aae153cffcd4) (cherry picked from commit 53965d391c08cc3b935f5bd86d2d95bb6fe89262)
* s3-spoolss: implement enumprinters_level5.Günther Deschner2009-04-151-2/+8
| | | | | | Guenther (cherry picked from commit aa6dbcfc11b74c1e80728bc295d9612ba4eb1e64) (cherry picked from commit 48df86ca7f6d59b530597621862a619813a0568f)
* s3-spoolss: use enum_all_printers_info_level for level 1 and 2.Günther Deschner2009-04-151-110/+8
| | | | | | Guenther (cherry picked from commit 6713244d465b0cf69f1bba15744e05795ec2fda9) (cherry picked from commit ebf6d6d956a60c4f95baa4e148573bde933bdb2d)
* s3-spoolss: add enum_all_printers_info_level().Günther Deschner2009-04-151-0/+77
| | | | | | Guenther (cherry picked from commit 95f2913c7de2ac69421911ec2cb0fcbb8c4e8e93) (cherry picked from commit ce1b736da021858273a1daff0246e0740bc67620)
* s3-spoolss: apply some const in spoolss server.Günther Deschner2009-04-153-42/+45
| | | | | | Guenther (cherry picked from commit 5a388115a944a425a774d7ec98260b7595998ee1) (cherry picked from commit e0cdb435d38c643d5a75aa16e793c6f09a349978)
* s3-rpcclient: allow to set flags in enumprinters command.Günther Deschner2009-04-151-4/+9
| | | | | | Guenther (cherry picked from commit c9a388348a2d4b276448b6a7bfc8c575b99f8eb7) (cherry picked from commit f9eb007d64e155d561cd257d3d6e09b267299a0b)
* s3-netapi: Fix Coverity #774 (REVERSE_INULL).Günther Deschner2009-04-151-6/+3
| | | | | | Guenther (cherry picked from commit 3a6133d70202ef80ead4203740c000be5e93b288) (cherry picked from commit 0ec1350d3d9272a6070950ba1d460523f53a628d)
* s3-netapi: Fix Coverity #775 (REVERSE_INULL).Günther Deschner2009-04-151-6/+3
| | | | | | Guenther (cherry picked from commit f2243e8197aa064adea3da2a4d1c08250668943f) (cherry picked from commit 8a6f09cededf4167aea5f08e573bab51afcc0074)
* s3-netapi: Fix Coverity #776 (REVERSE_INULL).Günther Deschner2009-04-151-7/+3
| | | | | | Guenther (cherry picked from commit d2e348b191ada5492538b7bdae1bb7cd3f639aba) (cherry picked from commit e858d192e1d7d6ab45ec247fbb776f5825e7fca5)
* s3-krb5: Fix Coverity #762 (REVERSE_INULL).Günther Deschner2009-04-151-6/+6
| | | | | | Guenther (cherry picked from commit 97190ae184dff6450b1390c854f7426e2ee3f980) (cherry picked from commit 1a591aadb66d589171d236fc2f8bf2eb6d9ce499)
* s3-net: Fix Coverity #861 (UNINIT).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 73030b107d5722a2c42cd18240d45bcb256335ac) (cherry picked from commit 81a6aee736f805d1bf8d7d2a1ff19851cd11d763)
* s3-net: Fix Coverity #898 (UNINIT).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit d2fb6d348248cdca7e55360c77aa31b91250f885) (cherry picked from commit 874caf9a1fb45f36ec8c506d29264735d1647dae)
* s3-spoolss: pure comsetics.Günther Deschner2009-04-154-190/+188
| | | | | | | | sorry, I just need to do that. Guenther (cherry picked from commit 045151b767c62ac1343e86cb3886107226e73fda) (cherry picked from commit 59811de7a80d5ecdf090c116087c7a03ae288887)
* s3-krb5: Fix Coverity #722 (RESOURCE_LEAK).Günther Deschner2009-04-151-12/+18
| | | | | | Guenther (cherry picked from commit 1524abd8bf12d82e1fb0063585fc9a465fc7bf9c) (cherry picked from commit 42a692da477d7986767ad90a15087aa8a2ebcb40)
* s3-net: Fix Coverity #886 (FORWARD_NULL).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 2c186be0df33664eea980c17720be41f25f91288) (cherry picked from commit 990917cbe3f8cd00e2d13dd67ee752fffae94401)
* s3-samr: try to to fix password_expired flag handling.Günther Deschner2009-04-153-52/+161
| | | | | | Guenther (cherry picked from commit 842edcd2b08763a35dbdea3518fcc039aa70aad4) (cherry picked from commit 98dd60a0e85d37945deaa997d87f5cb173eaaea9)
* Fix crash in async_smb.cBo Yang2009-04-151-3/+6
| | | | (cherry picked from commit b20cace3a7c312f44f39390954bc087b888d9b27)
* add a versiontest program to print samba_version_string().Michael Adam2009-04-152-0/+30
| | | | | | | | This is to allow for testing samba_version_string() without the need to compile any of the larger binaries like smbd or net... Michael (cherry picked from commit a75c184cafbb80adb0a3b056e55608d2d263a0c6)
* version: fix handling of SAMBA_VERSION_VENDOR_PATCH.Michael Adam2009-04-151-1/+2
| | | | | | | We need a string version of this, or else version.c does not compile. Michael (cherry picked from commit 21bf5cac5f352f51432ad717b2e5051a3a63cac9)
* s3: Fix a free of an uninitialized variable in winbind_get_sid_aliasesDan Sledz2009-04-151-1/+0
| | | | (cherry picked from commit c50490e4af2f4270cf8b59f868b45630efb55efd)
* fix build on old Heimdal based systemsBjörn Jacke2009-04-151-5/+3
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 011ad7245d53a716c4c766f5ef8d317bb3a53d0f) (cherry picked from commit 3b74ba990e5b96e17ef76845551ab03fdddc59f8)
* s3:libsmb: always create bytes array in cli_trans codeStefan Metzmacher2009-04-151-5/+14
| | | | | | | | | | | Otherwise we return NO_MEMORY without a reason for fragmented trans requests, as talloc_append_blob() returns buf if we append a 0 length blob. When we pass buf = NULL we'll get back NULL and then assume NO_MEMORY... metze (cherry picked from commit 88dd6af605dc5754b7e146a068272d37651da710) (cherry picked from commit 5bbf96dd63227a19fe1f95ff8d8f2b3c75a5a497)
* s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requestsStefan Metzmacher2009-04-151-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | Before we send the secondary requests we need to remove the old mid=>seqnum mapping and reset cli->mid and make the new mid=>seqnum mapping "persistent". The bug we had in cli_send_trans was this: The first cli_send_smb() incremented cli->mid and the secondary requests used the incremented mid, but as cli->outbuf still had the correct mid, we send the correct mid to the server. The real problem was that the cli_send_smb() function stored the seqnum under the wrong mid. cli_send_nttrans() was totally broken and now follows the same logic as cli_send_trans(). The good thing is that in practice the problem is unlikely to happen, because max_xmit is large enough to avoid secondary requests. metze (cherry picked from commit 880fbc4e8cd67de73c4bcda94489eb1e1422a04b) (cherry picked from commit 70466990b4b7c68ae95dbbcf741cd3f41f2dd0b3)
* s3:lib/util_sock: use sys_recv() instead of sys_read() on socketsStefan Metzmacher2009-04-151-2/+2
| | | | | | | | This ways the pcap support in socket wrapper sees the received data. metze (cherry picked from commit 0dfdb7b911ed4fe013fc4a22a8c3a28620277a67) (cherry picked from commit 6ec3d902e16edd6d911b6883f565ddf1938b47bf)
* Modify simple POSIX open test to use filenames containing a ':'Jeremy Allison2009-04-151-2/+2
| | | | | | character. Should stop regressions of bug #6196. Jeremy. (cherry picked from commit 69093de0a3ae958c214542bb4f374ed90ff1c82d)
* Allow DFS client paths to work when POSIX pathnames have beenJeremy Allison2009-04-151-2/+12
| | | | | | selected (we need to path in pathname /that/look/like/this). Jeremy. (cherry picked from commit 913d1f2af87fa449881a6fd2774a9dfdcb198fb4)
* Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS clientJeremy Allison2009-04-151-2/+7
| | | | | | | Looks like the pathname parsing for POSIX paths got broken when the code for doing Windows streams parsing got added. Jeremy. (cherry picked from commit 8d8c25a34241c1b4a1d40d7ad02bd1e1baa605be)
* s3 onefs: Correctly error out when the read returns EOFTim Prouty2009-04-151-5/+9
| | | | | Also add some more debugging. (cherry picked from commit a398deb3fe71a6c4c237b1f64dd7bbb8cb6bfa28)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-04-152-19/+206
| | | | | | | | | | correctly. This is a really nasty one to fix as in order to successfully update the passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash values before we do the upgrade. Jeremy. (cherry picked from commit 8e1c29a8be7ea21a6998b77e872bcef90160ee83)
* s3: remove POLICY_HND.Günther Deschner2009-04-1543-376/+360
| | | | | | Guenther (cherry picked from commit 531af136f9dd5c6050f78948837294aed02de440) (cherry picked from commit 91216ffa95b4ed53e54b11665e96b911cb4e4ab5)
* s3-rpc_parse: remove some unused parsing code.Günther Deschner2009-04-152-351/+0
| | | | | | Guenther (cherry picked from commit 7d7b1a8dcc338ea037cc02ef1b2dd9e9f6ce0943) (cherry picked from commit 032113b3fe5a8fa06672256cbc028833b519b83f)
* s3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.Günther Deschner2009-04-151-1/+1
| | | | | | | | | | | When _spoolss_GetPrinterData receives a query on a printserver handle for a value that we have not stored or do not provide, we need to return WERR_INVALID_PARAM, not WERR_BADFILE. Tested with w2k and w2k3 servers. Found by torture test. Guenther (cherry picked from commit a1256594b047061d5fce8b7b4234dc725462392d) (cherry picked from commit 4a62b839c64ce309245a6167388f78e63918c5c4)
* s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.Günther Deschner2009-04-151-0/+4
| | | | | | | | | | When a windows clients queries the "" key, we need to make sure to return with the appropriate error (WERR_INVALID_PARAM in that case), and not fall through to the buffer size handling macros. Found by torture test. Guenther (cherry picked from commit 43182fdff89bc5c238e7a90cf93500cef850ecd5) (cherry picked from commit 095eb03b14a7ddf4194dcafb618100c768369f1d)
* s3-rpc_parse: remove unused BUFFER5 and UNISTR3.Günther Deschner2009-04-155-183/+0
| | | | | | Guenther (cherry picked from commit 7a85a87edf3a589235b932a3c802278e78da4ec5) (cherry picked from commit 5bc2518950cce45dcbdccf17439c11a3d959f97d)
* s3-rpc_client: remove unused CLI_DO_RPC_WERR macro.Günther Deschner2009-04-151-30/+0
| | | | | | Guenther (cherry picked from commit e966719049702827c482c5e19783b9a7c725bdb1) (cherry picked from commit e1055c372a3b77fdd28f17635465a7a0a9c578fa)
* s3-smbcontrol: use correct PRINTER_NOTIFY flags.Günther Deschner2009-04-151-3/+3
| | | | | | Guenther (cherry picked from commit 21391f7fbe6c92ba050462750571cda661f5fb8a) (cherry picked from commit 6ac0a8d45e14deede30f56ab8c4d8288b83f15b4)
* spoolss: add my copyright.Günther Deschner2009-04-153-1/+3
| | | | | | Guenther (cherry picked from commit 9d1ab9a0013127d08bad01975a5204e8f63b9ddc) (cherry picked from commit ecc7537b6b0c7921160448b97a3cd8df1f4c77cf)
* s3-spoolss: remove include/rpc_spoolss.h.Günther Deschner2009-04-152-168/+0
| | | | | | Guenther (cherry picked from commit 7fbdf8aae93f143c879de705936279f42eb8ee6f) (cherry picked from commit 2471cb64f7d2d2e7eb594b1cf904af9d6befd389)
* s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.Günther Deschner2009-04-154-601/+5
| | | | | | Guenther (cherry picked from commit 36d07858069ed8710a0ad822535074bed77ec130) (cherry picked from commit 931e48a757d40fb4dd5099560fe31afad201464c)
* s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.Günther Deschner2009-04-153-33/+1
| | | | | | | | Good-Bye, last hand-marshalled rpc functions, rest in peace. Guenther (cherry picked from commit a502392541bcb45babbb8ca57e17306aa726ee9b) (cherry picked from commit 82e78e67e00863437ef26914ff8d85007509b620)