Code to get password expiry days.
HI
Can anyone tell me what is the code to get the password expiry days.
Thanks
shashank
Hi Shashank,
umservice = (IUserManagementService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.usermanagement.usermanagement");
Properties umeProps = new Properties();
umeProps.load(umservice.readUM_PCDFile("sapum.properties"));
String expDays = umeProps.getProperty( "ume.logon.security_policy.password_expire_days");
Hope it helps
Detlev
Similar Messages
-
Urgent - code to get password expiry days
HI
can anyone tell me what should be the code to get the password expiry days means the value of expiry days
Thanks
shashank
Ur answer must be appreciate.Hi Shashank,
Just a suggestion...
If you're not able to get it from the LDAP, then you may have to work with this:
In the IUserAccount Class, there is a method called: getLastPasswordChangedDate().
Get that date, and add on the days that you set for Password Validity period.
This could be used as a workaround !
Regards,
harman -
Urgent - usr password expiry days.
HI
I set the Password expiry value to 1 day System Admin >> Sys cofig>>um configuration> security settings. Then after one day when i checked , user password is not expired and user can login with his same old password .
Can any one tell me what should i do to for that.Hi,
first: You only need to restart the server when performing changes to the UM configuration, not when changing user accounts.
Second: What are you using as UME data source: an ABAP system, the J2EE database or an external LDAP server?
Third: Have you taken a look into your system's trace files (default.trc) and logs (esp. security.log)? Anything interesting in there?
Regards,
Dominik -
How to get the first day in the month from a domain date ?
Hi,
I like to know how to get the first day in the month from a domain date?
Thanks
StephenHi Gokul...
Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
Its similar to the above one but instead of writing case statement you can achive the following.
data : w_res type i,
w_data type d,
w_res = w_date mod 7.
w_date = w_date - w_res.
write w_date.
This works.
Regards,
Siddarth -
How to get the First day in a Week in a Fiscal Year
Hi guys,
I have a Requirement to calculate the First day in a Week in a Fiscal year .
The FM GET*FIRST_DATE and all are for Calender year.
Is there any FM to calculate the First in a Week in a Fiscal year.
For eg. They will give 200826.
In this 26 is the Week.
I need to find the First date value in that Week.
Thanks,
GokulHi Gokul...
Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
Its similar to the above one but instead of writing case statement you can achive the following.
data : w_res type i,
w_data type d,
w_res = w_date mod 7.
w_date = w_date - w_res.
write w_date.
This works.
Regards,
Siddarth -
How can i write a code to get sume of value from days.
Hi,
how can i write a code to get the sum of value of days(example 1 to 30).
This is in BPS ...
i created multi planning area and creted planning function with {keyfigure name,planning area,days}.
now i want to read all the actual values from basic planing area(basic cube) and calculate the sum of the value.if you have idea can you share the code.
ENTRIES = VARC ( 'zvardays' ). ex(zvardays like 28 days or 29 days or 30 days or 31 days)
COUNT = ENTRIES.
*Get the all the days value from actual
FOREACH PAREA = 'basic planning area'.
COUNT = 1.
DO
SUM = SUM + {amount, count} (amount is a keyfirgure value)
ENDDO.
COUNT = COUNT+1.
SUMACT = SUM.
ENDFOR.
can you correct the above code ....to read the values and sum of the those value.
Thanks...Hi ..
That is ok..
Can you provide sample code for my requirement..
and also how can i pass the error message (can you help me syntax )
and if my acutal-total is not equal to plan-total then
i have to pass the error message and then i have to restrict save the data how i can i restrict(user can not save the data until the values should be equal) .
Can you help me it is very urgent..
thanks.//
Edited by: Eyda rose on Jun 4, 2008 9:29 PM -
Password expiry still at 45 days
Windows Server 2008 R2
in my group policy, i have an OU that contains all users and computers. in this OU, i created a policy such that passwords are:
enforce password history: 6
max password age: 90 days
min password age: 1 day
min password length: 8 chars
password must meet complexity requirements: enabled
this has been set many months before. prior to that, our max password age was 45 days.
now, even if i forced gpupdate, users are only getting the 45 days max password age. i'm not sure where it is coming from and why the 90 days is not being enforced.
i looked at the default domain policy and it is empty so that 45 days settings isn't coming from there.
i know my gpo works because when i do changes for IE, they are being pushed to my users just fine.
is there any other place i might have overlooked that could still be holding this 45 days max password age?> i don't want to apply the password policy to the servers hence i used
> the OU.
Rethink - you are configuring user accounts, not servers. Accounts live
in the domain, thus the GPO must be linked to the domain.
> if it doesn't work, why is it that rsop says they indeed received the 90
> days max password age?
This affects local accounts on the current member computer only.
> kindly describe what is "PSO".
Password settings object.
Greetings/Grüße,
Martin
Mal ein
gutes Buch über GPOs lesen?
Good or bad GPOs? - my blog…
And if IT bothers me -
coke bottle design refreshment (-: -
Java code to get the difference between two dates in days
Hi ppl,
I need to write a user defined function to get the difference between two date nodes, in days.Please help me out
regards,
PrashanthHi,
have a look at those two:
(How do I calculate the difference between two dates?)
http://joda-time.sourceforge.net/faq.html
Calculating the Difference Between Two Datetime Stamps
http://www.xmission.com/~goodhill/dates/deltaDates.html
Get difference in days
http://javaalmanac.com/egs/java.util/CompDates.html
Regards,
michal -
Setting password expiry for all users in oracle apps R12
hi,
i have OS RHEL 5,Oracle apps: 12.1.1
now i want to set the password expiry for all the users in oracle apps to 60 days..
can some on please guide on how this could be done.
It is urgent,your help is appreciated.
regards,
Milan RathodHi Milan;
Check below thread
How force users to change passwords every 60 days
How force users to change passwords every 60 days
PS:Registered: Sep 24, 2010
Total Posts: 38
Total Questions: 30 (28 unresolved)
Please change your thread status to anwered which you already get answer for your issue
Regard
Helios -
Password expiry tracking report
Hi,
Appreciate anyone can help me.
I have change the password expiry setting in the RZ10, from 30 days to 60 days.
Is they any report tracking to check on the password expiry upon reset the password instead of counting it manually?Can we get this info via SUIM?
Thanks.Hi,
Transaction RSUSR200 List User According to Logon Date and Password Change. Use the selection option No. days since password change.
If this isn't what you are looking for you may have to create a custom report based on the values in table USR02.
Cheers
Bill -
Notification about password expiry on VPN Client
Hello everyone.
Our VPN users are connected to VPN with VPN Client. We're using VPN3000 to terminate VPN and ACS 5.1 to authenticate users from its internal identity store. VPN3000 gets info from ACS via RADIUS.
Now I want users to be notified about password expiration at their VPN client and be able to change their password.
I've configured:
- "RADIUS with expiry" at VPN3000
- "Disable user account after X days if password was not changed" and "Display reminder after Y days" at ACS
Now user is blocked when his password is expired after X days and he can't connect. But the reminder is not displayed after Y days and users have not chance to change his own password.
If I check "Change password on next login" user can change his password in VPN Client.
Should this feature (password expiry notification) work with ACS5.1 internal identity store and RADIUS?
I found in ACS5.1 release notes the following:
- Internal identity store enhancements include support for Password expiry
but:
- Expiry of any user (admin or internal) after certain number of days is not supported.
I'm confused with these two phrases.
And one more question. What RADIUS attributes say about password expiration and password notification to check them with radlogin?
Thanks in advance for any help.
PavelFor what it's worth, I've followed that procedure to successfully reset the administrator password on a VPN 3000 concentrator without any loss of the active configuration.
-
Password expiry warning message
Hi Security experts,
Is it possible to get an a pop-up warning message similar like windows/lotus notes like password expiry before couple of days in GUI/Portal.
Thanks in advance
Regards
PavanHi,
there is a user exit SUSR0001 that is called right after dialog logon (no RFC, no web) which can be used to display a pop up message. Good question is if it's called also for business client. I assume that it's not but I can't test it right now.
Cheers -
How to get the last day of the next month?
Hi all.
I need to get the last day of the next month. E.g. if the date is 20.03.2008 I need to get 30.04.2008.
Is there any FM for it?
TIA, Nikolai.hi Nikolai,
pls. have a look athe following piece of code:
PARAMETERS : p_date TYPE sy-datum.
DATA : gv_res TYPE sy-datum.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
* DAYS = '0'
months = '2'
start_date = p_date
IMPORTING
result_date = gv_res.
==> Now you have (gv_res) 2 months later as today
gv_res+6(2) = '01'. ==> gv_res is first day of next-next month
gv_res = gv_res - 1. ==> gv_res is last day of next month
hope this helps
ec -
How to get the last day of the previous month
Hello Team,
If my input date is today , then i need to find out the last day of the previous month for the same.
Can someone help me to find out .. how can this be done.
Regards,
RaviHi,
Try the below code.
// get a calendar object
GregorianCalendar calendar = new GregorianCalendar();
// convert the year and month to integers
int yearInt = Integer.parseInt(year);
int monthInt = Integer.parseInt(month);
int dayInt = Integer.parseInt(day);
// adjust the month for a zero based index
monthInt = monthInt - 1;
// set the date of the calendar to the date provided
calendar.set(yearInt, monthInt, dayInt);
int day = calendar.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
return Integer.toString(day);
Regards
Venkat -
Any F.Module is there to get 'Month and day ' from the given input number
Hi experts,
I am working on Inventory withdrawl report and in the selection screen, If i enter the CHARG (Batch number) then I need to display the posting date by default in the next selection input based on the Batch number.
In the selection screen :
Batch : 7111WF0211.
Posting Date : (I need to display by default based on batch number).
My requirement is, in the above Batch first digit '7' is the year.
And from 2nd to 4th digit. i.e., 111. I need to find out month and day from 111.
I mean from 1 to 365 days, In which day and which month '111' will come ?
Please send me the code or suitable Function Module. Your help will be appreciated.
Thanks,
Ranji.Use FM ADD_TIME_TO_DATE
Do this
days = batch+1(3).
days = days - 1.
Call Function 'ADD_TIME_TO_DATE'
exporting
i_idate = '01.01.2008'
i_time = days
i_iprkz = 'D'
importing
o_idate = date_p_d
You will get the date in date_p_d.
But what about Leap years? IS the first number the year?
IF so pass in i_idate the first of january of that year so you get the correct day depending if it is a leap year or not
Edited by: Ramiro Escamilla on Feb 26, 2008 9:56 PM
Maybe you are looking for
-
Cannot view msgs after upgrading to IOS8
Cannot view msgs after upgrading to IOS8..I get the msgs but cannot open them..the screen just goes blank I tried restarting..back up ..using a different sim..everything but nothing is working can anyone help urgently its affecting my business big ti
-
Exchange Server 2013 64bit with SP1 Standard - Readiness Checks/Prerequisite Analysis
I'm trying to install Exchange 2013 with SP1 on Windows Server 2012 R2 Standard, at the Readiness Checks setup, I get 25 errors. Before the Readiness Checks setup, I had selected 'Automatically install Windows Server roles and features that are requi
-
Broken links on Designer Documentation page
On the following page [http://otn.oracle.com/docs/products/designer/content.html] there are incorrect documentaion links.
-
I messed up my domain pointers by adding a forwarder and now my site is pointing to a different website. How do I change this back? Every time I try to login to the BC's administration it re-directs me to the new domain, so I can not administer the s
-
MD5 function generates a different checksum than Solaris utility Options
Hi, I am generating a MD5 checksum as follows: MD5Init(&md5handle); in=open("myfile",O_RDONLY); while (count=read(in,buf,sizeof(buf))>0) { MD5Update(&md5handle,buf,count); close(in); MD5Final(buf,&md5handle); for (i=0;i<16;++i) printf("%02x",(unsigne