[Samba] samba-tool issue

David Bear dwbear75 at gmail.com
Thu Jun 26 12:37:11 MDT 2014

I mis-typed a value using samba tool and had an error:

 bin/samba-tool domain passwordsettings set --min-pwd-age=-
ERROR(<type 'exceptions.ValueError'>): uncaught exception - invalid literal
for int() with base 10: '-'
line 175, in _run
    return self.run(*args, **kwargs)
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line
1151, in run
    min_pwd_age = int(min_pwd_age)

So, yes, I can always retype it. But I was thinking it would be better to
put a check on the parsed value to assure that its an integer.

Is this python code? I may be able to make this change.

David Bear
mobile: (602) 903-6476

More information about the samba mailing list