summaryrefslogtreecommitdiffstats
path: root/source/passdb/secrets.c
Commit message (Collapse)AuthorAgeFilesLines
* Update secrets_fetch_domain_guid to generate and store it if it doesn't exist.Jim McDonough2002-08-121-2/+11
| | | | Only does it for PDCs.
* fixed multi-line strings for portabilityAndrew Tridgell2002-07-311-2/+2
|
* Add LSA RPC 0x2E, lsa_query_info2. Only level implemented is 0x0c, whichJim McDonough2002-07-301-0/+32
| | | | | is netbios and dns domain info. Also add code to set/fetch the domain GUID from secrets.tdb (although set is not yet called by anyone).
* (another patch from mimir)Andrew Bartlett2002-07-261-2/+17
| | | | | | | | Add some debugging info to the secrets code. We might review what debug level that should be at, but it's fine for now. Andrew Bartlett
* 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
* Looks like abartlet got a bit overexcited about using const...Jim McDonough2002-05-231-1/+1
| | | | | | BOOL const secrets_init(...) Broke AIX build.
* Updates for sane storage of ldap root DN passwords (tested, with upgradeAndrew Bartlett2002-05-221-14/+18
| | | | | | | from 2.2 format) and LDAP rebind support (untested, I don't have a setup to match). Andrew Bartlett
* so here it is the code to introduce seriously debugggging classes.Simo Sorce2002-05-181-0/+3
| | | | | | | | | | | | | | | | | | 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
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-171-13/+34
| | | | | | | 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
* 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
* make sure we use consistent keys in secrets.tdb by uppercasing domainAndrew Tridgell2002-03-101-0/+4
| | | | names
* 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
* Fix up the trusted domains secrets code so as to have a slight chance ofAndrew Bartlett2002-03-021-12/+10
| | | | working.
* 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
* 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
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Fixed up atomic update code.Jeremy Allison2002-01-091-1/+1
| | | | Jeremy.
* 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.
* Add a couple of extra debugs for the secrets.tdb stuffAndrew Bartlett2001-12-051-2/+8
|
* auto-init secrets.tdbAndrew Tridgell2001-12-051-0/+5
|
* This comment no longer applies.Andrew Bartlett2001-12-041-1/+0
|
* added "net join" commandAndrew Tridgell2001-11-241-3/+33
| | | | this completes the first stage of the smbd ADS support
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-5/+10
| | | | Jeremy.
* move to SAFE_FREE()Simo Sorce2001-09-171-3/+3
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
|
* get rid of compiler warningsHerb Lewis2001-08-241-1/+1
|
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* 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.
* Changes to use new genrand code that got missed while I was in Japan.Jeremy Allison2001-06-061-0/+29
| | | | Jeremy.
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
|
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-3/+3
| | | | Jeremy.
* 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...
* 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
* updates to the tdbsam implementation.Gerald Carter2000-12-061-1/+0
| | | | --jerry
* 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.
* 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
* Fixes for various compile warnings on Solaris 8.Tim Potter2000-07-101-1/+1
|
* moved secrets handling into secrets.cAndrew Tridgell2000-06-031-0/+43
|
* 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).
* 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.
* Someone :-) forgot to add secrets.c to HEAD.Jeremy Allison2000-05-081-0/+90
Jeremy.