[PATCH] net ads error

Alexander Bokovoy a.bokovoy at sam-solutions.net
Fri Feb 15 10:21:52 GMT 2002


Greetings!

Attached patch fixes a problem with non-working 'net ads -Uuser%pass'
in CVS HEAD.

-- 
/ Alexander Bokovoy
Software architect and analyst             // SaM-Solutions Ltd.
---
Yow!  It's some people inside the wall!  This is better than mopping!
-------------- next part --------------
diff -urk.original ./source/utils/net_ads.c.original ./source/utils/net_ads.c
--- ./source/utils/net_ads.c.original	Mon Feb  4 16:38:34 2002
+++ ./source/utils/net_ads.c	Fri Feb 15 14:16:19 2002
@@ -99,9 +99,9 @@
 		asprintf(&prompt,"%s password: ", opt_user_name);
 		opt_password = getpass(prompt);
 		free(prompt);
-		ads->password = strdup(opt_password);
 	}
 
+	ads->password = strdup(opt_password);
 	ads->user_name = strdup(opt_user_name);
 
 	status = ads_connect(ads);


More information about the samba-technical mailing list