summaryrefslogtreecommitdiffstats
path: root/source/client/smbmount.c
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett2003-03-081-1/+1
| | | | | | | | | | | | reason, during a Win2003 installation, when you select 'domain join' it sends one machine name in the name exchange, and litraly 'machinename' during the NTLMSSP login. Also fix up winbindd's logfile handling, so that it matches smbd and nmbd. (This helps me, by seperating the logs by pid). Andrew Bartlett
* Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enableAndrew Bartlett2003-02-151-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | users w/o full administrative access on computer accounts to join a computer into AD domain. The patch and detailed changelog is available at: http://www.itcollege.ee/~aandreim/samba This is a list of changes in general: 1. When creating machine account do not fail if SD cannot be changed. setting SD is not mandatory and join will work perfectly without it. 2. Implement KPASSWD CHANGEPW protocol for changing trust password so machine account does not need to have reset password right for itself. 3. Command line utilities no longer interfere with user's existing kerberos ticket cache. 4. Command line utilities can do kerberos authentication even if username is specified (-U). Initial TGT will be requested in this case. I've modified the patch to share the kinit code, rather than copying it, and updated it to current CVS. The other change included in the original patch (local realms) has been left out for now. Andrew Bartlett
* Fix typo in WIFSIGNALED (as per Waider's report)Alexander Bokovoy2003-02-131-1/+1
|
* waitstatus audit: Correctly handle case where smbmnt is killed by aMartin Pool2003-02-131-0/+3
| | | | signal. Previously this was incorrectly treated as success.
* smb signing compile fixTim Potter2003-02-021-1/+1
|
* More signing updates - start checking that the server isn't being spoofed.Andrew Bartlett2003-02-021-0/+3
| | | | Andrew Bartlett
* Add FIXME about dodgy argument parser.Martin Pool2003-01-201-0/+11
|
* s/WIFSIGNALLED/WIFSIGNALED/gGerald Carter2003-01-151-1/+1
|
* One more from waitpid() audit: Correctly interpret waitstatus when aMartin Pool2003-01-151-1/+5
| | | | | child fails. Possibly this was causing smbmount to exit(0) when it really should have indicated a failure.
* Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()Jeremy Allison2002-11-131-1/+1
| | | | | to ensure the malloc is done. Jeremy.
* Bring smbmount.c in line with jra's global-cide. global_scope was used here...Jim McDonough2002-11-131-2/+1
|
* Kill append_log from smbmount (thanks vance for reminding me).Andrew Bartlett2002-11-091-2/+0
| | | | Andrew Bartlett
* Fix the %m security bug again - and try to make it harder to reintroduce inAndrew Bartlett2002-08-101-2/+1
| | | | | | | | | | | future. This moves us from fstrcpy() and global variables to 'get' and 'set' functions. In particular, the 'set' function sainity-checks the input, in the same way as we always have. Andrew Bartlett
* getpid() -> sys_getpid()Tim Potter2002-03-141-20/+20
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* One line fix to get smbmount working again.Andrew Bartlett2002-01-051-0/+3
| | | | | | | This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS errors at the same time. Andrew Bartlett
* Fix for extra capabilities from Urban Widmark <urban@teststation.com>.Jeremy Allison2001-12-191-25/+33
| | | | Jeremy.
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-6/+0
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-5/+2
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* Fixed compiler warnings and dyn_CONFIGFILE related breakage.Tim Potter2001-11-261-10/+9
|
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-2/+0
| | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean.
* Rename xmalloc, xmemdup, xstrdup to smb_$1 to avoid conflicts with theMartin Pool2001-11-201-4/+4
| | | | versions defined by libreadline on SCO (!).
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-8/+17
| | | | default, rather than in preprocessor macros.
* Remove xstrdup since it was added to lib/util.c. Caused compile failureJim McDonough2001-10-241-13/+0
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* smbmount fixes from Urban.Jeremy Allison2001-09-201-5/+21
| | | | Jeremy.
* move to SAFE_FREE()Simo Sorce2001-09-171-7/+6
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-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.
* fixed handling of 139/445 in clientsAndrew Tridgell2001-08-241-2/+2
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-8/+8
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-3/+0
| | | | | | | 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.
* a couple of minor merges from 2_2Andrew Tridgell2001-04-221-2/+4
|
* Patch from Mandrakesoft to ensure we close all files.John Terpstra2001-04-141-1/+3
|
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-4/+4
| | | | Jeremy.
* Sync up Urbans changes from 2.2 into HEAD.Jeremy Allison2001-03-101-1/+4
| | | | Jeremy.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-091-55/+246
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-2/+2
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-071-5/+5
| | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-751/+445
|
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-011-1/+1
|
* Got to the bottom of another weird one...Michael Warfield1999-02-181-1/+5
| | | | | | | | | | Piping the output of smbmount back to autofs/automount was causing the automount process to hang. Reason was that automount was depending on the pipe to close to continue on, rather than detecting the child signal. This occured with debug enabled and the daemon process was not closing the stdout process. Disabling debuging avoids the problem. Debugging is turned off in the cvs repository and a warning placed over the debugging option.
* Added caching of user password if it was entered via getpass. We were alreadyMichael Warfield1999-02-141-1/+102
| | | | | | | | | | | | | | | | | | caching the password if it came from the command line or from the environment. This completes the set and deals with the bloody nusance when reconnecting a connection after we have gone daemon... Grrr... Added code to clean up the mount point following a catastrophic failure during reconnect. The smbmount daemon was exiting but leaving the mount point in an unusable state. If smbmount must exit following a reconnect failure, we "unmount" the mount point and clean up mnttab. Currently, the unmount works, fixing some really ugly I/O errors and failure when trying to remount. The cleanup on mnttab still has problems. This is better than what it was and doesn't break anything that wasn't broken before, so I'm committing this in even with the mnttab problem. Will commit the fix to that when I figure out what is busted there... -mhw-
* Fixed a glibc glitch in smbumount.c and reenabled some debuggingMichael Warfield1999-02-131-1/+1
| | | | in smbmount.c
* Minor change to bring smbmount in the main branch in line with some bzeroMichael Warfield1999-02-011-3/+3
| | | | to memset changes...
* Ok... Yet another round of fixes for smbmount and autofs.Michael Warfield1999-01-311-18/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | 1) The earlier fix for the smbmount race conditions broke the PID registration with smbfs. That fix has been backed out and replaced by a signalling convention from the child smbmount process back to the parent telling the parent when it is safe to exit. 2) Fixing all of this uncovered a NASTY deadly embrace between smbmount, smbmnt, and autofs. This was caused by the setsid call in the daemon code. The smbmnt process no longer was registered as "magic" because it was no longer in the autofs process group. Many many kudos and thanks to H Peter Anvin for giving me the clue to solving this agravating puzzle. The setsid was moved down the where the child signals the parent and a warn left in its place in the daemonize code. 3) Fixed (actually worked around with a BUTT UGLY HACK) a problem with SMB_GET_MOUNTPID in smbumount.c. The smb_fs.h header file has the parameter to this ioctl defined as a uid_t. Unfortunately that's a 32 bit quantity under glibc and it's currently a 16 bit quantity in kernel space. Undefined the macro and redefined it with a parameter of __kernel_uid_t. That should keep us out of trouble till I can have someone fix smb_fs.h in the kernel sources...
* Earlier fix for smbmount timing window was the wrong patch.Michael Warfield1998-11-301-9/+10
| | | | | My bad... Earlier one was the patch from the CIFS conference that didn't work, this fixes...
* Fixed timing window created by daemonize function. Smbmount was going daemonMichael Warfield1998-11-131-7/+10
| | | | | | | | before the mount was actually completed. This caused weird problems when used with autofs such as empty directories on first listing or files which would appear in "ls" but would return "no such file or directory" under "ls -l". Note to Volker: Initial attempt from CIFS conference didn't work. Had to move daemonize function inside of loop after ioctl.
* Fixed uid->vuid confusion in smbmount (hopefully).Jeremy Allison1998-09-301-2/+2
| | | | Jeremy.
* Got very strict about the differences and uses ofJeremy Allison1998-09-291-10/+7
| | | | | | | uid_t, gid_t and vuid. Added sys_getgroups() to get around the int * return problem. Set correct datatypes for all uid, gid and vuid variables. Jeremy.
* Two changes in this ball...Michael Warfield1998-09-281-0/+2
| | | | | | | | | | | | 1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems. 2) Changes to Makefile.in and configure.in (and subsequently configure) are to configure for smbmount, smbumount, and smbmnt to compile. This adds a "--with(out)-smbmount" option to configure. Sanity checking is not present yet. You can specify this if you are not on linux, it just won't compile.