summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2003-09-10Fix error return path memory leaks in vampire code for creating users.Tim Potter1-3/+8
Display an error if we can't create a posix account for the user (e.g no add user/machine script was specified; bug #323). (This used to be commit 0c35ba2cd65ff64c5db2b20d5528a0d486cba51e)
2003-09-10Use opt_target_workgroup instead of lp_workgroup() in vampire code soTim Potter1-2/+2
we can override the value in smb.conf with the -w option. Migrating accounts from another domain can now be done like: # bin/net join bdc -w nt4dom -Uadministrator%password # bin/net rpc vampire -w nt4dom -U administrator%password (This used to be commit d7bd3c1efbd02a7ca01ad9a4b242ea4cc4a63c1f)
2003-09-10Formatting fixups for help output.Tim Potter1-2/+2
(This used to be commit c030d1401950b6efcbdf30ad899c25a61efb1814)
2003-09-10Remove tags file for distclean.Tim Potter1-1/+1
(This used to be commit c972fac195fd9280ab2a0da28b8ed11aaacd3bff)
2003-09-10Fix mb bug in fast path code. strlen_w() returns number of *characters*Jeremy Allison1-3/+3
not number of bytes. Reproduce this by trying to rename the file named : sibréseau -> sibréseaU from Windows 2000 explorer. Jeremy. (This used to be commit 035f59599514491609078ac0fe5804278c43a9b3)
2003-09-10remove references to 'strip dot'Gerald Carter1-4/+0
(This used to be commit 5c0c9d68b44f867bf6c2b24b9fd9ba2408b9f83c)
2003-09-09bumping new version to CVS 3.01pre1; optmistic about RC3Gerald Carter1-3/+3
(This used to be commit fb69ca974db9aca4aa88952f7872369ce6274e8b)
2003-09-08Don't double-increment p in hash calculation. Found by valgrind.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 514d9361c7be8cb8ef1a1309773baab1d982eea6)
2003-09-08Fix valgrind-found read of uninit variable (ensure length is right).Jeremy Allison1-3/+3
Jeremy. (This used to be commit 6fc0e529f70253244628017a372257e8dc053294)
2003-09-08Tidy up some formatting. Get ready for allowing bad password lockout. (basedJeremy Allison2-63/+56
on a patch posted from Richard Renard <rrenard@idealx.com>. Jeremy. (This used to be commit abf54b58e95a949cb883d4485853dc560489c03f)
2003-09-08Protect against core dump if ioctl for print job sends invalid fid. FoundJeremy Allison1-1/+5
by Iskantharajah T <is@tracetec.com.my>. Jeremy. (This used to be commit a9f9dd71da41801c975303a385ff229788c9498a)
2003-09-08Fix for incorrect error message - found by Alex Davis <alex14641@yahoo.com>.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 28631ef23f855ce91740fd144e3dc235a3ae7af6)
2003-09-08make sure we substitute basic variables in read/write listGerald Carter1-2/+2
(This used to be commit 52bea54d35e7fb32c7ed7b067c13afe53761affb)
2003-09-08fix compile error on HP-UX 10.20Gerald Carter1-0/+5
(This used to be commit 15d53fd53c622de316d0ff41f1b60f0e2c69f908)
2003-09-08fix valgrind errors; don't access cli_state pointer after it has been shutdownGerald Carter1-17/+13
(This used to be commit 02ae82fb3f70dc37e815d8e88bfd31a8c3ff43db)
2003-09-08Set PICFLAG="-fPIC" for gcc under HPUX.Tim Potter1-0/+2
(This used to be commit 7f2533207ee46fa968cf1fd31ac0cd89e1fb0bb1)
2003-09-08Fix for bug #299.Tim Potter1-30/+80
There was some confusion over dynamically allocated lists of pointers (i.e you have to make space for the list of pointers and what they are pointing too) in the memory buffer passed in from libc. Valgrind is much happer now and as a bonus there is no segfault. (This used to be commit 7907c44414acb841a9001e82285790eece73d032)
2003-09-08Rename FOOLIBS to FOO_LIBS to be consistent with the rest of theTim Potter2-60/+60
library variable names. (This used to be commit 9b0b0256a8bb93482fad4032902a4ab6d1e99e23)
2003-09-08Fix for bug #334. We don't unmarshall the trusted domain or secretsTim Potter1-6/+14
info delta correctly and thus crash when doing a net rpc samdump. The easiest thing at the moment it to comment out these functions as they seriously don't correspond with reality (netmon/ethereal) and the data in the containers aren't used anyway. (This used to be commit 695aa39c5d798b112f0a06281b499fcac8a5bf31)
2003-09-08Reformat debug.Tim Potter1-4/+5
(This used to be commit 3aab7a3bc7920b6e479700c176ac7a7b80262f42)
2003-09-08When enumerating dfs shares loop from 0 to lp_numservices() instead ofTim Potter1-1/+1
relying on lp_servicename(n) to return an empty string for invalid service numbers. For some reason it is returning NULL now. Fixes bug 403. (This used to be commit cebb2abd2e946a5f9f2d84a7e8ae82eceecd0274)
2003-09-07Nobody complained on the team-list, so commit it ...Volker Lendecke8-2/+390
This implements some kind of improved AFS support for Samba on Linux with OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile into secrets.tdb with 'net afskey'. If this is done, on each tree connect smbd creates a Kerberos V4 ticket suitable for use by the AFS client and gives it to the kernel via the AFS syscall. This is meant to be very light-weight, so I did not link in a whole lot of libraries to be more platform-independent using the ka_SetToken function call. Volker (This used to be commit 5775690ee8e17d3e98355b5147e4aed47e8dc213)
2003-09-06Use djb-algorithm string hash - faster than the tdb one we used to use.Jeremy Allison1-8/+7
Jeremy. (This used to be commit f094555ed9d4f72841869e79037d6ff980ebe324)
2003-09-06finish off bug 282. AAdd extra checks for pointers afterGerald Carter1-7/+7
ads_search_XXX() calls. (This used to be commit 74c02e5fbc411d6fd1b13a1e21599da030897efe)
2003-09-06Change some internal interfaces to cause the hash (which is *expensive*)Jeremy Allison1-18/+31
to be calculated less often. No change to external interface. Jeremy. (This used to be commit 155c9ce6663df9963c7563adf78a232d3650b7b5)
2003-09-06fix bug 382: make sure to free and reset the cli_state pointer after ↵Gerald Carter1-0/+6
flushing connections in winbindd_pam_auth[_crap]() (This used to be commit 60c8796edd84249db5419329a0fea4bbc7f9bb98)
2003-09-06address bug #359. Andrew B's patch for implementing clientGerald Carter3-32/+39
portion of NTLMv2 key exchange. Also revert the default for 'client ntlmv2 auth' to no. This caused no ends of grief in different cases. And based on abartlet's mail.... > All I care about at this point is that we use NTLMv2 > in our client code when connecting to a server that > supports it. There is *no* way to tell this. The server can't tell us, because it doesn't know what it's DC supports. The DC can't tell us, because it doesn't know what the trusted DC supports. One DC might be Win2k, and the PDC could be an older NT4. (This used to be commit fe585d49cc3df0d71314ff43d3271d276d7d4503)
2003-09-06revert retry loops in winbindd_ads as abartket points out, weGerald Carter2-314/+153
already have ads_search_retry() for this. However, neither domain_sid() nor sequence_nunber() used this function. So modify them to us ads_do_search_retry() so we can specify the base search DN and scope. (This used to be commit 89f6adf830187d020bf4b35d1a4b2b48c7a075d0)
2003-09-06Only set sids when they're retrurned by the MySQL queryJelmer Vernooij1-2/+2
(This used to be commit 9a603f6f077a2e1ddc41849cca3641421ecbaf11)
2003-09-05More cachegrind tuning, plus fix an error message.Jeremy Allison3-15/+38
Jeremy. (This used to be commit 8cb9ec5d533085d40fc6bfe4ca9647d80bf41ac7)
2003-09-05More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison26-119/+130
as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-05fixes for ads domain membership when only the realm is defined inGerald Carter5-17/+95
smb.conf Fixes to ensure we work with disable netbios = yes (This used to be commit 3913e43724870c62a0d77ec3e73cbe9480cb6247)
2003-09-05revert the change from r1.414 in HEAD that removed theGerald Carter1-7/+2
ability to use variables in paths for the [homes] service. (This used to be commit 8fd13b63103b3c144bdd170edcb3b642dfd9bb54)
2003-09-05fix some output formattingGerald Carter1-0/+1
(This used to be commit 0283b0152e4cbe3d26b305ab9867e2b0765addfe)
2003-09-05reformattingGerald Carter1-102/+107
(This used to be commit 5c3094ee5558a85b9e688aca8044f228ec6fbb33)
2003-09-05fix some problems with the findsmb script due to changes in smbclient & ↵Gerald Carter1-29/+31
nmblookup (This used to be commit 50bb063f3ba0ce0f336bd9f1af3090839ee7b118)
2003-09-05Very weird. On my SLES8 installation ntlm_auth would give missingVolker Lendecke1-1/+1
kerberos symbols unless I do the same as smbd does. It does not hurt on my debian, so simply give a pointer to LDAPLIBS as well. Volker (This used to be commit 353d5272912ac11aa3ebf7403593177c45b20147)
2003-09-05Fix for bug 282 that didn't get checked in.Tim Potter1-1/+1
(This used to be commit e3f5afb83142f44369dcd341d6e66ed2fe51248f)
2003-09-05fix bug 397: use a variant of alloc_sub_basic() for string lists.Gerald Carter2-1/+34
(This used to be commit 62d5611df0cf86c267d7fe820822d4d019ae28bd)
2003-09-05should fix bug 364 & 311: Retry patch based on suggestion fromGerald Carter1-142/+316
Ken Cross. Sometimes ads conenction get stale but we don't know they are dead until we try them. This patch may need some optimization after people bang on it for a while. (This used to be commit 7021cf63a4501c90620cf6a5f117eef345bbd291)
2003-09-05Fix for bug #73. Name types can be specified using name#type notation.Tim Potter1-7/+31
Also added shortcut so that 'net lookup foo#1b' works. (This used to be commit f38679201e301d66473e74506f07812590d19fa4)
2003-09-05Move $(KRBCLIENT_OBJ) to libnss_wins PICOBJ variable so it is converted toTim Potter1-5/+8
relocatable form. Added a comment about this in the hope that it won't happen again. Renamed PAM_WINBIND_OBJ to PAM_WINBIND_PICOBJ to make it a bit clearer. (This used to be commit 04797e12d85a4b4d616397dd1283e5a65af5adab)
2003-09-05Hand optimisatinos for strrchr_m using the properties we know about MBJeremy Allison1-11/+47
character sets and how we use this call. Jeremy. (This used to be commit a9709700eea3bb48ab4a79d74e0b8d22dc98576f)
2003-09-05Return 0 DFS links instead of -1 when dfs support is not enabled.Tim Potter1-1/+1
Possible fix for bug 403. (This used to be commit 6babab93ff845c18f7c0d73e6a016764e31f4fac)
2003-09-04Removed {OLD,NEW}_NTDOMAIN cruft from mkproto.awkTim Potter1-14/+0
(This used to be commit 061decb608a3c881e646617b623277895fc0c13e)
2003-09-04Fastpath strchr_m for ASCII.Jeremy Allison1-0/+13
Jeremy. (This used to be commit b3176f2ec246441dd483dc9757a487535b1656e6)
2003-09-04More hand-tuning of the fastpath. Don't do strlen() when we're doingJeremy Allison2-14/+31
to walk to the end anyway. Jeremy. (This used to be commit 467cafdb1f7ddfb4278824f385b732975246a4f5)
2003-09-04Check in Andrew's fix for bug #305 (always use lp_realm() )Gerald Carter2-15/+9
Also make sure thet ads_startup uses lp_realm instead of just relying on the workgroup name. Fixes bug in net ads join when the workgroup defaults to "WORKGROUP" and we ignore the realm name. (This used to be commit b1763ace4e85f41574894e3807cabb5196fec661)
2003-09-04Remove convert_string_internal completely from fast path when processingJeremy Allison1-10/+18
NBENCH calls. Requires fixed buffer size for strdup_upper(). Jeremy. (This used to be commit e98fbfaf384bd2d3ebb002b0b981366377fb5ac0)
2003-09-04Fix UNIX passwd sync properly. I've finally understoodJeremy Allison2-99/+63
the as_root parameter has bugger all to do with who you *currently* are, and everything to do with who you run the script as. Doh ! Jeremy. (This used to be commit 17a241d9f788b63fec091001cb72d34c09cf32a4)