summaryrefslogtreecommitdiff
path: root/source3/script
AgeCommit message (Collapse)AuthorFilesLines
2002-07-14This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2-0/+215
used to be commit b8d39651fb90ef170055735412417239a63afc5d)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-0/+5
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-24much better findstatic scriptAndrew Tridgell2-59/+65
(This used to be commit 2947b7624f921032bcd2cc5507747b2f7ef190de)
2002-06-13a useful script for finding global variables or functions that couldAndrew Tridgell1-0/+59
be static very very slow ... I leave it as an exercise for the reader to make this O(n) instead of O(n^2) (This used to be commit 7c035d473c7175163ad5db0373ed2fe6c739b968)
2002-05-18A few things in this commit:Andrew Bartlett1-0/+10
cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett (This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-10Added findsmb to .cvsignore list.Tim Potter1-0/+1
(This used to be commit 5b682b2e04d054a2843269373abddc764c4c0cdd)
2002-05-09merge from SAMBA_2_2Gerald Carter1-1/+1
(This used to be commit 7382c3013d7b630ba7229a1d12104b8f7edfd9ca)
2002-05-09merge from SAMBA_2_2Gerald Carter1-0/+145
(This used to be commit cc241cb240db6956baf3d5c6b6d01a0a165a6ef5)
2002-03-28Added another return type.Tim Potter1-1/+2
(This used to be commit 9b2777d3bcef92b10cdc43a4c1e90beb48382a17)
2002-03-28Use headername when closing off include file guards.Tim Potter1-1/+2
(This used to be commit 5bf5bffdd557cec3588e8d7a95b6cf75d00e616f)
2002-03-21make install should also install the default dat files from codepagesHerb Lewis1-0/+23
directory so we don't keep getting these stupid error messages about incorrect size for valid.dat upcase.dat and lowcase.dat (This used to be commit 4af0c7a93f626dde33fd737618c2b786f83046c7)
2002-03-13Move the directory creation process outside the 'installbin.sh' script, andAndrew Bartlett2-11/+20
into its own. The 'installdirs' makefile entry didn't do anything on my laptop, so it has been replaced with the section from installbin.sh. This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when making the directories. Finally, link pam_winbind with .po objects only, not a mix of .o and .po (as per Don Mccall's request). Andrew Bartlett (This used to be commit c7a883df28da9dd6fb88198df22c4d78bf8acd8b)
2002-02-18we definately don't want RCS $id tags in Samba. They make merging muchAndrew Tridgell1-2/+0
harder. (This used to be commit 6d33b30929e323276e7fc21012983d691a4f8827)
2002-02-12Add ADS_MODLIST to allowed typesJim McDonough1-1/+1
(This used to be commit d082d3a9fc2d6eddf82b1583eb1cbfcf5965f1a0)
2002-02-05support double functionsAndrew Tridgell1-1/+1
(This used to be commit e72c6fb36ebd3ea8fc6b6d8e1b1a9ff1ccb3ade9)
2002-01-20This is the current patch from Luke Leighton <lckl@samba-tng.org> to add aAndrew Bartlett1-1/+1
degree of seperation betwen reading/writing the raw NamedPipe SMB packets and the matching operations inside smbd's RPC components. This patch is designed for no change in behaviour, and my tests hold that to be true. This patch does however allow for the future loadable modules interface to specify function pointers in replacement of the fixed state. The pipes_struct has been split into two peices, with smb_np_struct taking the information that should be generic to where the data ends up. Some other minor changes are made: we get another small helper function in util_sock.c and some of the original code has better failure debugs and variable use. (As per on-list comments). Andrew Bartlett (This used to be commit 8ef13cabdddf58b741886782297fb64b2fb7e489)
2001-12-19much better ADS error handling systemAndrew Tridgell1-1/+1
(This used to be commit 05a90a28843e0d69183a49a76617c5f32817df16)
2001-12-19- added initial support for trusted domains in winbindd_adsAndrew Tridgell1-1/+1
- gss error code patch from a.bokovoy@sam-solutions.net - better sid dumping in ads_dump - fixed help in wbinfo (This used to be commit ee1c3e1f044b4ef62169ad74c5cac40eef81bfda)
2001-11-24added "net join" commandAndrew Tridgell1-1/+1
this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
2001-10-15always install swat language filesAndrew Tridgell1-13/+5
(This used to be commit f283011c284844ef1bdd1f1fc718263904ef5797)
2001-10-11initial kerberos/ADS/SPNEGO support in libsmb and smbclient. ToAndrew Tridgell1-1/+1
activate you need to: - install krb5 libraries - run configure - build smbclient - run kinit to get a TGT - run smbclient with the -k option to choose kerberos auth (This used to be commit d33057585644e1337bac743e25ed7653bfb39eef)
2001-10-05Add CLI_POLICY_HND as a valid return type.Tim Potter1-1/+1
(This used to be commit 880201b52b92a430d3f593adf3d55893f7c1c4c4)
2001-09-25now --with-i18n-swat works to install some international filesMotonobu Takahashi1-8/+26
used by SWAT into $swatdir/$ln/{help,images,include} we have still points which needs to discuss, that is how to archive and install lots of HTML help files and Using Samba files. -- monyo (This used to be commit 9ec2d5e96ebb907e66250772057bf5e2601f8ec9)
2001-09-25Try to fix up manpage installationAndrew Bartlett1-1/+1
(This used to be commit a302bb20e28ea2e4d04eca34a23ff42e9bc07b05)
2001-09-24fixed a typo in installman.shMotonobu Takahashi1-1/+1
fixed a problem that source/install-sh is not executable (This used to be commit c2e256c18cbaa1145ab6ca8ad59baadca36abbdd)
2001-09-24Added SWAT i18n feature:Motonobu Takahashi3-44/+106
TO enable configure with --with-i18n-swat to support this gettext is integrated and a new directories name "po" and "intl" are created. now these languages are supported: en - English (default) ja - Japanese po - Polish tr - Turkish To add your language, to create ${your_language}.po by translating source/po/en.po into your language is needed. some of html and image files of various language version are not included yet, though message catalogue files are installed. you need to copy files manually under ${swatdir}/lang/$ln/{help,images,included,using_samba} And also added a option to intall manual pages: of various lang version To enable configure with --with-manlangs but manual pages themself are not included yet. (This used to be commit 486b79a6fc4ba20a751aab544bd0f7ccff2b3d19)
2001-09-19Try to fix up the shell syntaxAndrew Bartlett1-2/+2
(This used to be commit f57b1085b3a608871f0c1c8fbfe19c121dc8504f)
2001-09-19typoAndrew Bartlett1-1/+1
(This used to be commit 7a47e0fceb8999de93ac9e5721bf65401630dec6)
2001-09-19Adding the appropirate files might help...Andrew Bartlett1-0/+35
(These are part of the build_options patch). Andrew Bartlett (This used to be commit 4e5c7724b4e4c132b7b43104d3063d2f7357bae2)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell1-1/+1
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
2001-09-03the next step in our error code handling changeAndrew Tridgell1-1/+1
- added WERROR for win32 error codes - added a configure test for immediate structures still lots to do, so its not enabled by default, but the main structure is there (This used to be commit 24f9ab683dec52587ee56717e821b49c0fa3d70f)
2001-08-27new logs use abbreviated month names. Add this to date conversionHerb Lewis1-1/+17
(This used to be commit 8021669b167053b5500f035c9c50d1327d73c232)
2001-08-27converted smbd to use NTSTATUS by defaultAndrew Tridgell1-1/+1
major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night (This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
2001-07-04The big character set handling changeover!Andrew Tridgell1-1/+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)
2001-06-20initial support for paramter type P_LISTSimo Sorce1-0/+10
it will avoid problems with lists being longer than 1024 bytes just now only ip list parameters have been converted to the new type (hosts allow, hosts deny, ssl hosts, ssl hosts resign) (This used to be commit e1572f85d6247b760db10825b2fa688d7ed50bd3)
2001-05-14Cosmetic changes in make proto output.Tim Potter1-1/+1
(This used to be commit 858290d63b8e4300f2a1a334675566beb6881993)
2001-05-07merge some fixes from 2.2Andrew Tridgell1-1/+1
(This used to be commit 7e57adf2a039cb5b6458496f9190c9c642645600)
2001-04-28- added test for vasprintfAndrew Tridgell1-2/+2
- cleaned up GNUC printf attribute macros - added enum handling in mkproto - removed non-vararg code - made slprintf and vslprintf just macros for snprintf and vsnprintf - don't need slprintf code any more (This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
2001-04-27Patch from Frédéric Blanc <el_blaf@yahoo.fr> to correctly uninstallJeremy Allison1-6/+6
codepages. Jeremy. (This used to be commit 231f1f44c314d5d614c9f2745a108839a26cfc0d)
2001-04-23row of asteriks that indicates new entry must start at beginning of line.Herb Lewis1-1/+1
(This used to be commit df4a31580c537b2008db76a2009d21f7f9ac7285)
2001-03-25merge from 2.2Gerald Carter1-0/+96
(This used to be commit b6227751f117ad507838db0cf0032093f6251646)
2001-01-12merge from 2.0 branch for installing Using Samba book filesHerb Lewis1-8/+68
(This used to be commit b04bd9ea2409ef02737fd570ce80daf167e41067)
2001-01-11Changes from APPLIANCE_HEAD:David O'Neill1-1/+1
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)
2000-12-21If extra arguments passed make yodl docs for these files rather than *.yoTim Potter1-2/+8
(This used to be commit b57fbcca06c7a69863f69628745f8fcbc13419bd)
2000-12-06Cause smbd to use the new posix_acls code, not the old unix_acls code.Jeremy Allison1-1/+1
Currently does exactly the same thing (returns ACLs the same way). This code is written to try and get a POSIX ACL via the abstract sys_XX interface, then fall back to providing a UNIX based ACL if the calls fail. Seems to work. Next step is to add a --with-posix-acls to configure.in and then check on a POSIX ACL system that a complex ACL is returned correctly as an NT ACL. Note that the ACL set (a more complex problem) is not addressed yet. Jeremy. (This used to be commit 4339e20202a876dbadc07980b731f711463b7299)
2000-11-13Large commit which restructures the local password storage API.Gerald Carter1-2/+7
Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry (This used to be commit 0b92d0838ebdbe24f34f17e313ecbf61a0301389)
2000-08-25vfs write data fix. Fix for name matching in addtosmbpassJeremy Allison1-1/+1
Jeremy. (This used to be commit 85738b7ee1ea6d88999d6aedc51a2daf545cb8b8)
2000-08-04Fixed up the user/group contexts when using authenticated pipes.Jeremy Allison1-1/+1
Added a become_root()/unbecome_root() (push/pop security context) around the initgroups() call to ensure it would succeed. Hmmm - I wonder if this call being done as non-root might explain any "group access" bugs we've had in the past.... Jeremy. (This used to be commit 06a65972e872f37d88b84f22ea714feebd38f6c0)
2000-07-18grab functions that return RPC_HND_NODE (declaredGerald Carter1-1/+1
in include/util_list.h) -- jerry (This used to be commit ccebd70df2c096de1b183ae072c2c720e2277c6f)
2000-07-06Make prototypes for functions returning an enum nss_status.Tim Potter1-1/+1
(This used to be commit dac9c934ac3932fb9870417e8f712a880dd25e45)