Displaying 12 results from an estimated 12 matches for "expiredate".
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
...essage);
+#if !defined(USE_PAM) && defined(HAVE_SHADOW_H) && \
+ !defined(DISABLE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
#define DAY (24L * 60 * 60) /* 1 day in seconds */
spw = getspnam(pw->pw_name);
if (spw != NULL) {
- time_t today = time(NULL) / DAY;
+ time_t expiredate, today = time(NULL) / DAY;
debug3("allowed_user: today %d sp_expire %d sp_lstchg %d"
" sp_max %d", (int)today, (int)spw->sp_expire,
(int)spw->sp_lstchg, (int)spw->sp_max);
@@ -106,20 +113,28 @@
if (spw->sp_lstchg == 0) {
log("User %.100s...
2017 Mar 27
3
Users list and the date the password will expire
On Sun, 26 Mar 2017 19:31:48 -0400 Mark Foley wrote:
>
> On Sun, 26 Mar 2017 19:53:01 +0100 Rowland Penny wrote:
> >
> > On Sun, 26 Mar 2017 14:32:53 -0400
> > Mark Foley via samba <samba at lists.samba.org> wrote:
> >
> >
> > > as root:
> > >
> > > ldbsearch --url=ldap://mail -b "DC=hprs,DC=local" -s sub
> >
2018 Mar 31
0
How to change Domain password as normal user?
...sing some
> calculation to get '89' ? I ask this because I would expect the
> attribute to contain something like '9223372036854775807'
Yes, the same ldbsearch. In fact, that and the calculation were given to me by you a couple of
years ago. The rest of the calculation is:
expireDate=$((($expireTime/10000000)-11644473600))
today=`date +%s`
togo=$((($expireDate-$today)/86400))
where $expireTime is the value returned by ldbsearch grep'ped for msDS-UserPasswordExpiryTimeComputed.
> > I'd like to try using smbpasswd next, but before I do I'd like to see
> >...
2018 Nov 27
3
Where is password expiration notice period
In our password settings we have:
> samba-tool domain passwordsettings show
:
Password complexity: on
Store plaintext passwords: off
:
Minimum password age (days): 0
Maximum password age (days): 90
:
I don't find any setting for how many days before the expiration to warn users about the
pending expiration. On Windows, users seem to get notified about a pending password expiration
at
2017 Mar 27
0
Users list and the date the password will expire
...ASSWORD ABOUT TO EXPIRE
expireTime=`/usr/bin/ldbsearch --url=ldap://mail -b "DC=hprs,DC=local" -k yes -s sub "(&(sAMAccountType=805306368)(sAMAccountName=$USER))" msDS-UserPasswordExpiryTimeComputed | \
grep msDS-UserPasswordExpiryTimeComputed | awk '{print $2}'`
expireDate=$((($expireTime/10000000)-11644473600))
today=`date +%s`
togo=$((($expireDate-$today)/86400))
if [ $togo -gt $warnDays ]; then exit 0; fi # no warning yet
IMAGE=/user/util/bin/pw1.png # this is just a generic silhouette of a user
TITLE="Change Expiring Password"
if [ "$togo"...
2017 Mar 27
0
Users list and the date the password will expire
...search --url=ldap://mail -b "DC=hprs,DC=local" -k
> > yes -s sub "(&(sAMAccountType=805306368)(sAMAccountName=$USER))" msDS-UserPasswordExpiryTimeComputed
> > | \
> > grep msDS-UserPasswordExpiryTimeComputed | awk '{print $2}'`
> >
> > expireDate=$((($expireTime/10000000)-11644473600))
> > today=`date +%s`
> > togo=$((($expireDate-$today)/86400))
> >
> > if [ $togo -gt $warnDays ]; then exit 0; fi # no warning yet
> >
> > IMAGE=/user/util/bin/pw1.png # this is just a generic silhouette of a user
>...
2018 Apr 04
2
How to change Domain password as normal user?
On Tue, 03 Apr 2018 23:34:13 -0400
Mark Foley via samba <samba at lists.samba.org> wrote:
> On Sat, 31 Mar 2018 17:04:22 +0100 Rowland Penny <rpenny at samba.org>
> wrote:
> >
> > On Sat, 31 Mar 2018 11:42:07 -0400
> > Mark Foley via samba <samba at lists.samba.org> wrote:
> >
> > > On Sat, 31 Mar 2018 12:25:14 +0100 Rowland Penny
> >
2018 Apr 04
0
How to change Domain password as normal user?
...ASSWORD ABOUT TO EXPIRE
expireTime=`/usr/bin/ldbsearch --url=ldap://mail -b "DC=hprs,DC=local" -k yes -s sub "(&(sAMAccountType=805306368)(sAMAccountName=$USER))" msDS-UserPasswordExpiryTimeComputed | \
grep msDS-UserPasswordExpiryTimeComputed | awk '{print $2}'`
expireDate=$((($expireTime/10000000)-11644473600))
today=`date +%s`
togo=$((($expireDate-$today)/86400))
if [ -n "$1" ] # any arg will be a debug mode to display Days to Go only
then
echo "[$expireTime]" Days to go: $togo
exit 0
fi
if [ $togo -gt $warnDays ]; then exit 0; fi
#...
2018 Mar 31
2
How to change Domain password as normal user?
On Fri, 30 Mar 2018 20:19:02 -0400
Mark Foley via samba <samba at lists.samba.org> wrote:
> > On Wed, 28 Mar 2018 20:14:00 +1300 Andrew Bartlett
> > <abartlet at samba.org> wrote:
> > >
> > > On Wed, 2018-03-28 at 03:09 -0400, Mark Foley via samba wrote:
> > > >
> > > > Actually, that didn't quite work. It did change the
2008 Dec 14
0
Newbee met problems when do some i18n on rails
...#39;')]
config.i18n.default_locale = :''zh-CN''
But, when I restart my server and try to access the rails project via
browser.
I''ve got one message "can''t convert Array into String", it comes from
this <%=h distance_of_time_in_words(Time.now, item.expiredate, true)
%>
And it seems everything related to data and time got this message.
Any one can help me point out the problem I have?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
T...
2012 Jul 25
0
help about quota config
...39;,
`netdiskquota` varchar(16) NOT NULL DEFAULT '0',
`domain` varchar(255) NOT NULL DEFAULT '',
`uidnumber` int(6) NOT NULL DEFAULT '1000',
`gidnumber` int(6) NOT NULL DEFAULT '1000',
`createdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`expiredate` date NOT NULL DEFAULT '0000-00-00',
`active` smallint(1) NOT NULL DEFAULT '1',
`disablepwdchange` smallint(1) DEFAULT NULL,
`disablesmtpd` smallint(1) DEFAULT NULL,
`disablesmtp` smallint(1) DEFAULT NULL,
`disablewebmail` smallint(1) DEFAULT NULL,
`disablenetdisk` small...
2002 Jun 05
1
How to switch from NT to Samba transparently?
Hi,
I want to switch from our Windows NT server
( which works as our PDC ) to Linux - Samba.
Could you advice a step-by-step guide about
this process, or is that possible, at all?
Can I use Samba as a BDC, convert the user
DB and than promote it to PDC?
Thanks in advance!
Regards;
Istvan