New net breaks scripts

Ken Cross kcross at nssolutions.com
Sun Sep 14 02:41:53 GMT 2003


Oops - forgot one:


Index: net.c
===================================================================
RCS file: /cvsroot/samba/source/utils/net.c,v
retrieving revision 1.43.2.35
diff -p -u -r1.43.2.35 net.c
--- net.c       7 Sep 2003 16:36:13 -0000       1.43.2.35
+++ net.c       14 Sep 2003 02:37:30 -0000
@@ -72,7 +72,7 @@ const char *opt_container = "cn=Users";
 int opt_flags = -1;
 int opt_timeout = 0;
 const char *opt_target_workgroup = NULL;
-static int opt_machine_pass = 0;
+int opt_machine_pass = 0;   /* KJC */
 
 BOOL opt_have_ip = False;
 struct in_addr opt_dest_ip;



Ken
________________________________

Ken Cross

Network Storage Solutions
Phone 865.675.4070 ext 31
kcross at nssolutions.com 

> -----Original Message-----
> From: 
> samba-technical-bounces+kcross=nssolutions.com at lists.samba.org
>  
> [mailto:samba-technical-bounces+kcross=nssolutions.com at lists.s
> amba.org] On Behalf Of Ken Cross
> Sent: Saturday, September 13, 2003 10:30 PM
> To: 'Andrew Bartlett'
> Cc: 'Multiple recipients of list SAMBA-TECHNICAL'
> Subject: RE: New net breaks scripts
> 
> 
> Good point, and the patch is even simpler.  Now -P disables 
> prompting for a password.
> 
> Also entered as bug #451.
> 
> Ken
> ________________________________
> 
> Ken Cross
> 
> Network Storage Solutions
> Phone 865.675.4070 ext 31
> kcross at nssolutions.com 
> 
> > -----Original Message-----
> > From: Andrew Bartlett [mailto:abartlet at samba.org]
> > Sent: Saturday, September 13, 2003 8:02 PM
> > To: Ken Cross
> > Cc: 'Multiple recipients of list SAMBA-TECHNICAL'
> > Subject: RE: New net breaks scripts
> > 
> > 
> > On Sun, 2003-09-14 at 04:58, Ken Cross wrote:
> > > FWIW, here's a patch to fix the first "feature" noted
> > below.  It adds
> > > a --no-prompt option to net to inhibit prompting for a password.
> > > 
> > > It was crucial for my operation when running net in a script, but
> > > maybe nobody else cares, so for those who can use it...
> > 
> > I would much prefer a patch that simply removes my breakage -
> > if you say -P, then that's all you want.
> > 
> > I agree with you, you we should *never* prompt in that case.
> > Make sure you file this in bugzilla, so we don't miss it...
> > 
> > Andrew Bartlett
> > 
> > -- 
> > Andrew Bartlett                                 abartlet at pcug.org.au
> > Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
> > Student Network Administrator, Hawker College   abartlet at hawkerc.net
> > http://samba.org     http://build.samba.org     http://hawkerc.net
> > 
> 
> 




More information about the samba-technical mailing list