summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
...
| * Name get and set dir drive functions consistently.Tim Potter2002-07-214-10/+11
| | | | | | | | (This used to be commit 290a304d2c1b70d20129236e20a0ff664179023e)
| * More cleanups, and add a comment/hint not to clean somthing up in future :-)Andrew Bartlett2002-07-211-0/+3
| | | | | | | | | | Andrew Bartlett (This used to be commit 21b0e8f560849be77bde463cf006ea0de54211e9)
| * More fixes towards warnings on the IRIX compilerAndrew Bartlett2002-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | (and yes, some of these are real bugs) In particular, the samr code was doing an &foo of various types, to a function that assumed uint32. If time_t isn't 32 bits long, that broke. They are assignment compatible however, so use that and an intermediate variable. Andrew Bartlett (This used to be commit 30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6)
| * addedd new (t)alloc_sub_* functionsSimo Sorce2002-07-143-13/+13
| | | | | | | | | | | | they will get a const string and return a (t)alloced epanded one. also modified passdb/* stuff to use this one. (This used to be commit d378ac1e2efb0efc9a0f983d69cf678ca6255fd5)
* | Jeremy the janitor again... keeping 3.0 in sync with tridge's changes thisJeremy Allison2002-11-071-0/+3
| | | | | | | | | | | | time. Jeremy. (This used to be commit 3803324d3d49f81ef0a82c4a9fedae70d32cb409)
* | Merge vl's 'algorithmic rid base' patch, and my changes to pdb_smbpasswd's NUAAndrew Bartlett2002-11-052-24/+48
| | | | | | | | | | | | | | support from HEAD -> 3.0 Andrew Bartlett (This used to be commit 89d8ebd520e2a441e6d5b6b8adb6c483b0131adc)
* | Merge of my 'ldap trust ids' patch from HEAD.Andrew Bartlett2002-11-021-36/+96
| | | | | | | | | | | | | | | | | | | | This hopefully provides a peformance boost by not hitting getpwnam() for every entry in an enumeration, instead reteriving entries directly (if available). idra has reviewed this patch. Andrew Bartlett (This used to be commit 8abe71c4d7a796001c5765f4dd88c2e6f5637802)
* | Merge passdb from HEAD -> 3.0Andrew Bartlett2002-11-029-667/+1319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work here includes: - metze' set/changed patch, which avoids making changes to ldap on unmodified attributes. - volker's group mapping in passdb patch - volker's samsync stuff - volkers SAMR changes. - mezte's connection caching patch - my recent changes (fix magic root check, ldap ssl) Andrew Bartlett (This used to be commit 2044d60bbe0043cdbb9aba931115672bde975d2f)
* | Try to catch up on the code I've put into HEAD that should be in 3.0:Andrew Bartlett2002-10-261-7/+0
| | | | | | | | | | | | | | | | | | | | - vorlan's hosts allow with DNS names patch - use x_fileno() in debug.c, not the struct directly. - check for server timeout on password change (was reporting success) - better error/status loggin in both the pam_winbind client and winbindd_pam server code. - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway. (This used to be commit 9fa1863d8e7788eda83911ca2610754486b33069)
* | Fix memory leak (patch by Steve Langasek)Jelmer Vernooij2002-10-251-0/+14
| | | | | | | | (This used to be commit 299a9060e27d341658a7badbbb21401fbcc8f083)
* | Only run free_private_data when specified (reported by Steve Langasek aka ↵Jelmer Vernooij2002-10-251-1/+2
| | | | | | | | | | | | vorlon) (This used to be commit ecd3acbfcf912a775718e320c7cb66f60436c546)
* | Start to merge the new ACL mapping code from Andreas Gruenbacher ↵Jeremy Allison2002-10-181-10/+38
| | | | | | | | | | | | | | <agruen@suse.de>. Jeremy. (This used to be commit 597c4610090d711fd30c1ffacc97212cf399a264)
* | Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-041-49/+11
| | | | | | | | | | | | MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
* | Updates from Samba HEAD:Andrew Bartlett2002-10-012-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix segfaults in the 'net ads' commands when no password is provided - Readd --with-ldapsam for 2.2 compatability. This conditionally compiles the old options, but the actual code is available on all ldap systems. - Fix shadow passwords (as per work with vl) - Fix sending plaintext passwords to unicode servers (again vl) - Add a bit of const to secrets.c functions - Fix some spelling and grammer by vance. - Document the -r option in smbgroupedit. There are more changes in HEAD, I'm only merging the changes I've been involved with. Andrew Bartlett (This used to be commit 83973c389355a5cc9ca74af467dfd8b5dabd2c8f)
* | sync with HEADGerald Carter2002-09-266-206/+228
| | | | | | | | (This used to be commit ee9cbf58071adb627a49a94c6340aaba330486b5)
* | remove files not in HEADGerald Carter2002-09-261-219/+0
| | | | | | | | (This used to be commit 9d9f7bbf87bf9a0e003e6da482615fe040d00852)
* | syncing up with HEAD again....Gerald Carter2002-09-262-51/+81
| | | | | | | | (This used to be commit e026b84815ad1a5fa981c24fff197fefa73b4928)
* | sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-259-1352/+1653
| | | | | | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* | sync 3.0 branch with headJelmer Vernooij2002-08-1710-139/+336
| | | | | | | | (This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
* | updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-1511-858/+1226
| | | | | | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* | This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2002-07-143-0/+506
|\| | | | | | | used to be commit b8d39651fb90ef170055735412417239a63afc5d)
| * Fix up a botched prevoius commit.Andrew Bartlett2002-07-141-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea here is to allow invalid LM passwords in otherwise valid accounts. This happens when we create an account without a password, for example. Previously we would stop at the LM password, and not read things like the account flags correctly. Now we process the record, and just set the password to NULL. (Note, 'no password for access' is decided only on the basis of the Account Control bits, not on the 'NULL' value of the password feild.). Andrew Bartlett (This used to be commit c590e0c970b5babf370924cef51530e5e215eaf2)
| * Make smbpasswd behave like all the other backends, where a NULL or invalidAndrew Bartlett2002-07-131-7/+4
| | | | | | | | | | | | | | | | LM password isn't anything special. All the users check the ACB nowadays, and this allows us to correctly return flags set via usermgr. Andrew Bartlett (This used to be commit 89eb765d398de7654ba6bac7c51df727830c2591)
| * If we get a SID from group mapping, no need to check it's prefix.Andrew Bartlett2002-07-101-6/+6
| | | | | | | | | | | | | | Just set it directly. Andrew Bartlett (This used to be commit 202202bc475f3b8500423b1a9ccf0adc80a4dc49)
| * Fix debug comment.Andrew Bartlett2002-07-051-1/+1
| | | | | | | | (This used to be commit f32980c807adf8287436be0d5a223b9b1ce399b8)
| * Break up the passdb objects (to allow RPC clients to link without brining inAndrew Bartlett2002-07-033-191/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *.o) and implment new enum_dom_users code in the SAMR RPC subsystem. Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the eventual hope that we might one day support muliple domains off a single passdb. To extract the RID, we use sid_peek_check_rid(), and supply an 'expected' domain SID. The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to srv_samr_util.c, to ease linking in passdb users. Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in pdb_compat.c Andrew Bartlett (This used to be commit 5a2a6f1ba316489d118a8bdd9551b155226de94f)
| * Fix the spelling in the LDAP attributesAndrew Bartlett2002-07-031-2/+2
| | | | | | | | (This used to be commit dab26f8891a77640ce382ce1785ca5dd22d43c22)
| * used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-1/+1
| | | | | | | | | | code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
| * Another bug fix from metze.Andrew Bartlett2002-06-261-1/+1
| | | | | | | | (This used to be commit 5c754cef19c9580e2cb1e23152a1097d11ca8c60)
| * Add module versioning to the passdb module systemAndrew Bartlett2002-06-222-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All passdb modules need to include a 'magic' macro that creates simple 'return my version number' function. (from metze and jelmer) Also fix up the dir_drive autosubsitute code to correctly use lp_logon_drive(). (from metze) Andrew Bartlett (This used to be commit 4a57c445dd4354034fc41b132a484afe6ab66e16)
| * compile warngin fixes merged from 2.2Gerald Carter2002-06-171-1/+1
| | | | | | | | (This used to be commit 29874f4b8fecdc7cbd84d656dafce54cca49e0b1)
| * Rework much of the service.c code:Andrew Bartlett2002-06-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The aim of this execise is to give the 'security>=user' code a straight paper path. Security=share will sill call authorise_login(), but otherwise we avoid that mess. This allow *much* more accurate error code reporting, beocuse we don't start pretending that we can use the (nonexistant) password etc. Also in this patch is code to create the 'homes' share at session setup time (as we have done in the past - been broken recently) and to record this on the user's vuser struct for later reference. The changes here should also allow for much better use of %H (some more changes to come here). The service.c changes move a lot of code around, but are not as drastric as they look... (Also included is a fix to srv_srvsvc_nt.c where 'total_entries' not '*total_entries' was compared). This code is needs testing, but passes my basic tests. I expect we have lost some functionality, but the stuff I had expected to loose was already broken before I started. In particular, we don't 'fall back' to guest if the user cannot access a share (for security=user). If you want this kind of stuff then you really want security=share anyway. Andrew Bartlett (This used to be commit 4c0cbcaed95231f8cf11edb43f6adbec9a0d0b5c)
| * moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.cSimo Sorce2002-06-141-2/+2
| | | | | | | | | | | | and renamed to str_list_* as it is a better name. Elrond should be satisfied now :) (This used to be commit 4ae260adb9505384fcccfb4c9929cb60a45f2e84)
| * Allow non unix accounts to be added to an ldap directory without NUA accountsAndrew Bartlett2002-06-141-0/+4
| | | | | | | | | | | | | | already. Andrew Bartlett (This used to be commit a5d5b4cf2555b9bbded31b556d4fc74c00c6c490)
| * Patch from ctrlsoft to use the pdb_sethexpwd function in smbpasswd - insteadAndrew Bartlett2002-06-141-48/+7
| | | | | | | | | | | | | | | | | | | | of implementing it twice inline. This code is complex - but occasionally I get the feeling that people made it more complext than it really needed to be... Andrew Bartlett (This used to be commit 273d518e52a83eca466c134531dd12825fe3cbdb)
| * It looks like we never tested the 'cleanup' code, so when I triggered itAndrew Bartlett2002-06-142-12/+20
| | | | | | | | | | | | | | (invalid passdb backends smb.conf entry) we picked up a few things :-). Andrew Bartlett (This used to be commit dfa98ae0ac195956490ca2f4140a8eff1566095e)
| * Some updates from ctrlsoft <jelmer@nl.linux.org> to return failure if *any* ofAndrew Bartlett2002-06-141-19/+20
| | | | | | | | | | | | | | the passdb backends fail to load (is this the right way? - I think so). Also, I've added some more comments, cleaned up some style etc. (This used to be commit c8c490bcb84df43be38bdcb48067fec12331e358)
| * Debug fixes from ctrlsoftAndrew Bartlett2002-06-141-2/+2
| | | | | | | | (This used to be commit 27e34d4e63adc6d6ad63857d2a17595b7cff52db)
| * Convenience function to allow a SID to be specified as a string.Andrew Bartlett2002-06-141-3/+46
| | | | | | | | | | | | | | (for use in passdb modules like pdb_xml or a new pdb_ldap that stores sids etc.) Andrew Bartlett (This used to be commit c70b2c4fb72f251a14e0fc88b6520d69a0889bc2)
| * Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_listAndrew Bartlett2002-06-143-30/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than a string when configuring mulitple backends. Also adjust some of the users of get_global_sam_sid() to cope with the fact that it just might not exist (uninitialised, can't access secrets.tdb). More places need conversion. Add some const and remove silly casts. Andrew Bartlett (This used to be commit c264bf2ec93037d2a9927c00295fa60c88b7219d)
| * Add const, kill of useless casts and therefore eliminate warnings.Andrew Bartlett2002-06-141-2/+2
| | | | | | | | | | Andrew Bartlett (This used to be commit 29490f214750acd44cee6c4ab1354722d82d853a)
| * Latest patch from metze <metze@metzemix.de> to move most of samba acrossAndrew Bartlett2002-06-137-84/+136
| | | | | | | | | | | | | | | | | | | | | | | | to using SIDs instead of RIDs. The new funciton sid_peek_check_rid() takes an 'expected domain sid' argument. The idea here is to prevent mistakes where the SID is implict, but isn't the same one that we have in the struct. Andrew Bartlett (This used to be commit 04f9a8ff4c7982f6597c0f6748f85d66d4784901)
| * Fix commentAndrew Bartlett2002-06-071-1/+1
| | | | | | | | (This used to be commit 1996bcbe6acae49e191363ee122b30e4e5d5e8a9)
| * Globally replace 'global_sam_sid' with get_global_sam_sid(), a selfAndrew Bartlett2002-06-073-36/+50
| | | | | | | | | | | | | | | | | | | | initialising function. This patch thanks to the work of "Stefan (metze) Metzmacher" <metze@metzemix.de> This is partly to enable the transition to SIDs in the the passdb. Andrew Bartlett (This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)
| * Move the code from lib/util_sid.c that deals with the global_sam_sid intoAndrew Bartlett2002-06-071-0/+280
| | | | | | | | | | | | | | | | a file that is linked with the passdb. This is to avoid linking insanity when this global becomes a self-initing function. (This used to be commit 743afd96cb54b4966e3afad11ea987f968b98651)
| * change: pdb_getsampwrid() ->pdb_getsampwsid()Simo Sorce2002-05-267-14/+49
| | | | | | | | | | | | | | passdb interface change, now the passdb modules will be asked for SID not for rid, the modules have been updated with a passthrough function that calls the old getsampwrid() functions. srv_samr_nt.c functions that made use of the pdb_getsampwrid funcion has been updated to use the SID one. (This used to be commit f5c6496c33fa7f5c2826540ffb4a49d8a5790fb3)
| * Only reterive the attributes we are actually going to use - rather thanAndrew Bartlett2002-05-251-3/+14
| | | | | | | | | | | | | | the whole record which could include things like photos's etc. Andrew Bartlett (This used to be commit bbc69545516f29cc4e05ba6238b03eb504f28226)
| * Remove unused variable, fix functions to match prototypes in the variousAndrew Bartlett2002-05-251-6/+5
| | | | | | | | | | | | | | structs. Andrew Bartlett (This used to be commit 57097bf1ba10566389266a4863899a7f25cdbb43)
| * Some of the updates from ctrlsoft's 'Various' patch:Andrew Bartlett2002-05-241-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | - convert net to popt - convert status to popt - adapt examples/pdb/ to multiple passdb system - add dynamic debug class example to examples/pdb/ and some reformatting to better match the samba coding style. Andrew Bartlett (This used to be commit 2498bc69d4e5c38ec385f640489daa94c508c726)
| * Make function match the defintion require for assignment as a functionAndrew Bartlett2002-05-241-1/+1
| | | | | | | | | | pointer. (This used to be commit 38012edaca4c181f3d3a9e9df4fc434bba78f9dc)