summaryrefslogtreecommitdiffstats
path: root/source3/passdb/secrets.c
Commit message (Collapse)AuthorAgeFilesLines
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-141-9/+127
| | | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
* make sure we use consistent keys in secrets.tdb by uppercasing domainAndrew Tridgell2002-03-101-0/+4
| | | | | names (This used to be commit 4cb7b6954b96e6964743e65413e122f7b4d39052)
* This patch merges my private LDAP tree into HEAD.Andrew Bartlett2002-03-021-28/+0
| | | | | | | | | | | | | | | | | | | | | | The main change here is to move ldap into the new pluggable passdb subsystem and to take the LDAP location as a 'location' paramter on the 'passdb backend' line in the smb.conf. This is an LDAP URL, parsed by OpenLDAP where supported, and by hand where it isn't. It also adds the ldap user suffix and ldap machine suffix smb.conf options, so that machines added to the LDAP dir don't get mixed in with people. Non-unix account support is also added. This means that machines don't need to be in /etc/passwd or in nss_ldap's scope. This code has stood up well under my production environment, so it relitivly well tested. I'm commiting this now becouse others have shown interest in using it, and there is no point 'hording' the code :-). Andrew Bartlett (This used to be commit cd5234d7dd7309d88944b83d807c1f1c2ca0460a)
* Fix up the trusted domains secrets code so as to have a slight chance ofAndrew Bartlett2002-03-021-12/+10
| | | | | working. (This used to be commit 4ecc170dcb84522135ddefb5f424cc756051a6d3)
* The beginning of trusted and trusting domain support fromAndrew Bartlett2002-03-011-3/+89
| | | | | | | | | Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> This adds the 'net' tools to manipulate the trusted domains. Andrew Bartlett (This used to be commit 770c8a31d9804d3339ffa0de8b5072a5c7eb02df)
* made the domain secret key in secrets.tdb domain specific. This allowsAndrew Tridgell2002-02-221-2/+14
| | | | | | you to join a 2nd domain then leave the old domain rather than the other way around (This used to be commit b26b6aef64e1042c9867a13761ded0c3c6f9670f)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Fixed up atomic update code.Jeremy Allison2002-01-091-1/+1
| | | | | Jeremy. (This used to be commit 274b04d4a6123fbfe363afc214e908ab36c7e8a7)
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-0/+41
| | | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F. (This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)
* Add a couple of extra debugs for the secrets.tdb stuffAndrew Bartlett2001-12-051-2/+8
| | | | (This used to be commit c76c1f6904510d6ecca3453f91433420f22b7bd6)
* auto-init secrets.tdbAndrew Tridgell2001-12-051-0/+5
| | | | (This used to be commit aff916e543f1c70aa5fe0fc07dda21e772625097)
* This comment no longer applies.Andrew Bartlett2001-12-041-1/+0
| | | | (This used to be commit 153c4a56b0b5473a1efb208551f36480cdb5d264)
* added "net join" commandAndrew Tridgell2001-11-241-3/+33
| | | | | this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-5/+10
| | | | | Jeremy. (This used to be commit 9148bb9eaa67de60c3b0b4709a9c05a840c20c66)
* move to SAFE_FREE()Simo Sorce2001-09-171-3/+3
| | | | (This used to be commit 64d35e94fe6f7e56353b286162f670c8595a90e6)
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
| | | | (This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
* get rid of compiler warningsHerb Lewis2001-08-241-1/+1
| | | | (This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0)
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | | Jeremy. (This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
* The big character set handling changeover!Andrew Tridgell2001-07-041-6/+1
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Changes to use new genrand code that got missed while I was in Japan.Jeremy Allison2001-06-061-0/+29
| | | | | Jeremy. (This used to be commit 5a15831b9ae79ce1ce34d5574fe5da114d184e45)
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
| | | | (This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-3/+3
| | | | | Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
* Merge of i18n fixes from appliance branch. Samba can now talk to a networkTim Potter2001-02-141-3/+10
| | | | | | with a PDC that has international netbios name and domain name. There's still quite a bit of i18n stuff to fix though... (This used to be commit 79045bd72ace9144e7dd73785b1d10a71b0d15aa)
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testsuite/printing/psec.c - Use lock directory from smb.conf parameter when peeking at the ntdrivers.tdb file. source/rpc_parse/parse_sec.c - fix typo in debug message source/script/installbin.sh - create private directory as part of 'make install'. source/nsswitch/winbindd_cache.c source/nsswitch/winbindd_idmap.c source/passdb/secrets.c source/smbd/connection.c - always convert tdb key to unix code-page when generating. source/printing/nt_printing.c - always convert tdb key to unix code-page when generating. - don't prepend path to a filename that is NULL in add_a_printer_driver_3(). source/rpc_server/srv_spoolss_nt.c - always convert tdb key to unix code-page when generating. - don't prepend server name to a path/filename that is NULL in the fill_printer_driver_info functions. source/printing/printing.c - always convert tdb key to unix code-page when generating. - move access check for print_queue_purge() outside of job delete loop. source/smbd/unix_acls.c - fix for setting ACLs (this got missed earlier) source/lib/messages.c - trivial sync with appliance_head (This used to be commit 376601d17d53ef7bfaafa576bd770e554516e808)
* updates to the tdbsam implementation.Gerald Carter2000-12-061-1/+0
| | | | | --jerry (This used to be commit 29b3ac8634769d01c20bf394eecc536a02e0f36c)
* passdb/secrets.c passdb/smbpassfile.c smbd/server.c : Actually *use* the codeJeremy Allison2000-11-271-3/+12
| | | | | | | | written to transition from an old DOMAIN.MACHINE.MAC file to secrets.tdb. printing/nt_printing.c: Fix case insensitive name lookups for driver files. John - this should fix the Win9x/WinME problem correctly. Jeremy. (This used to be commit 8f3332a9acf413ac5d12053ca5c52733a4e946cc)
* Another large patch for the passdb rewrite.Gerald Carter2000-11-211-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | o added BOOL own_memory flag in SAM_ACCOUNT so we could use static memory for string pointer assignment or allocate a new string o added a reference TDB passdb backend. This is only a reference and should not be used in production because - RID's are generated using the same algorithm as with smbpasswd - a TDB can only have one key (w/o getting into problems) and we need three. Therefore the pdb_sam-getpwuid() and pdb_getsampwrid() functions are interative searches :-( we need transaction support, multiple indexes, and a nice open source DBM. The Berkeley DB (from sleepycat.com seems to fit this criteria now) o added a new parameter "private dir" as many places in the code were using lp_smb_passwd_file() and chopping off the filename part. This makes more sense to me and I will docuement it in the man pages o Ran through Insure-lite and corrected memory leaks. Need for a public flogging this time Jeremy (-: -- jerry (This used to be commit 4792029a2991bd84251d152a62b1033dec62cee2)
* Fixes for various compile warnings on Solaris 8.Tim Potter2000-07-101-1/+1
| | | | (This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd)
* moved secrets handling into secrets.cAndrew Tridgell2000-06-031-0/+43
| | | | (This used to be commit e49550b975dd407a1a8538c9885e036e400b7714)
* Fixed LsaQueryInformationPolicy level 3 to return primary domain info.Matthew Chapman2000-05-291-0/+32
| | | | | | | | Domain SID is saved in secrets.tdb upon joining domain. Added "Authenticated Users" and "SYSTEM" well-known SIDs (under NT Authority). (This used to be commit 7710b4f48d3e8532df5e37f99a779758f750efdb)
* passdb/secrets.c: Fix typo in comment.Jeremy Allison2000-05-151-1/+1
| | | | | | | | | rpc_server/srv_pipe.c: Use accessor functions rather than diddling with structure internals directly. smbd/process.c: smbd/reply.c: Remove READ_PREDICTION #ifdefs. Jeremy. (This used to be commit eba825ff030a175bd271caa6f543379dfdbbd646)
* Someone :-) forgot to add secrets.c to HEAD.Jeremy Allison2000-05-081-0/+90
Jeremy. (This used to be commit ac40971f30e00a93fc5e138bfd1afa05cd8dea4b)