Job to send all user their initial password by e-mail (one for the pros)

Hello,
(IDM 7.2 with MSSQL)
I try to create a job that sends all user their "IDM-PASSWORD" via email.
In the first step, I generate a random password for all user. This password should now be sent to each user so they can log in to IDM-UI.
This is my approach:
1. Step
Define the source
A Job with a to generic pass:
SOURCE:
SELECT DISTINCT mskey FROM idmv_vallink_basic_active WHERE mcidstore=1 AND
((mskey IN (SELECT mcmskey FROM idmv_vallink_basic_active WHERE mcattrname='MX_ENTRYTYPE' AND mcsearchvalue = 'MX_PERSON')))
Destination:
MSKEYVALUE = %MSKEYVALUE%
JOB CONSTANTS:
         MAIL_SMTP_HOST = Host
         MAIL_SMTP_PORT = Port
         MAILATTRIBUTE   = MX_MAIL_PRIMARY
         MAILFROM         = MAIL....com
         NOTIFICATION     = blabla
         POSTTEXT         = </FONT><br><br>
         PRETEXT         = <FONT SIZE=5> blabla
Script for mailing:
function blödesMailding(Par){
var userList = Par.get("MSKEYVALUE");
var user = new java.util.Vector();
user = uSplitString (userList, "|");
var i = 0;
var result;
var emailAddress = "";
var idStore = uGetIDStore();
var emailAttribute = "%$MAILATTRIBUTE%";
for (i=0; i < user.size(); i++) {
     emailAddress = uIS_GetValue(user.get(i), idStore, emailAttribute);
     result = UserFunc.uSendSMTPMessage("%$MAILFROM%", emailAddress, "%$NOTIFICATION% ", "%$PRETEXT% " + "%$POSTTEXT%", "%$MAIL_SMTP_HOST%", "%$MAIL_SMTP_PORT%", 1);
     if (result.length > 0) {
          UserFunc.uErrMsg(2, result + ":Mail to:" + emailAddress);
return "";
And here is the error message^^:
Warning Constant MAIL_SMTP_HOST was not defined in the repository (-1)
Warning Constant MAIL_SMTP_PORT was not defined in the repository (-1)
Warning Constant MAIL_ORIGINATOR was not defined in the repository (-1)
Warning Constant MAIL_DEBUG was not defined in the repository (-1)
Warning Constant MAIL_DEBUG_RECIPIENTS was not defined in the repository (-1)
I set all of these constats in the GLOBAL CONTANTS form ID store! 
and here he also complains:
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
java.net.ConnectException: Connection refused: connect
Maybe I made a mistake, or my solution doesn't work at all.
I would be very glad if someone had an idea, or a better solution for this problem.

M Pollicove wrote:
> From the Job Folder you can access global constants, but I don't think you can access repository constants.  Re-work the script so it uses globals (making sure to set up the globals) and you should be fine.
Both repository constants and global constants work in jobs, just study your initial loads to see the use of repository constants.
Gerhard, do you have your correct repository defined in your pass/job? If you copy/pasted the pass the original repository might be still in the pass (done this a few times
You should be able to access your global constants in scripts with notation like (without any built-in functions):
var idStore = "%$glb.SAP_MASTER_IDS_ID%";
Edited by: Tero Virta on Jan 13, 2012 9:40 AM

Similar Messages

  • BT is sending all* of their customers through a sp...

    Hello,
    BT is sending all* of their customers through a specific proxy for specific domain(s).
    When they go to a specific website of mine, they are proxied to it via the IP 194.72.9.24, which is located in London, regardless of where they are located in the UK (even if they are up North). The issue is specific to only one of my domains; if they connect to another website of mine, their genuine IP shows like normal, and their are no issues. It honestly is quite baffling.
    This is specifically problematic for me because I run a ranking website for websites who want promotion, and they are ranked based on how many votes they receive. I rely on IP addresses to validate if a user has voted or not. These websites send their users to my website to vote if it appears that their IP has not voted that day, and then they are sent back to their website after they have voted and their IP is logged.
    Generally this works all fine and dandy, and there are no issues because people can generally be associated with their (genuine) IP for a day, and there are no worries. But when the website asking if a user has voted is sending their genuine IP to check if they voted, and it comes up as no and they are sent to my website and I check their IP has voted it shows up as a different IP, you can see why this is extremely problematic.
    I'm not really sure what to do, as this is a major issue, and I can't imagine how this could ever be considered a good idea in the first place. You're literally giving every single user connecting via BT the same identity, which could be extremely problematic even if a specific user were to do something bad, as there's no way to truly know who did it, and everyone with that address would be deemed as harmful subsequently.
    In case you are inquiring as to what domain of mine is being affected, it is "retroslist.com"; it shows the same IP (194.72.9.24) for any BT customer connected, as mentioned above. All of other websites that I run do not have this issue.
    * While I can't confirm that it's every single BT customer, every one that I have spoken to is proxied through this IP in London when connecting to my specific website.

    Your actual IP address will be whatever POP site you are connected to, it can be anywhere in the UK, and has been known to even come from the USA, as BT are global.
    That is assuming your website runs on the BT network?
    I would not rely on BT updating the Ripe database as to the IP usage. If you want to check if you are on CG-NAT, the bit at the start of this page will give you a clue.Port forwarding problems - just as an indication.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • How to find out the list of all user's whose passwords are expired

    Hi
    i had tried to find out the list of all user's whose passwords are expired.
    i had written some jndi code by finding the max age and then find out the current time and subtracted this current time from max age using the following code
    "Attributes attbts=ctx.getAttributes("cn=pwdpolicy");
    String maxAge=(String)attbts.get("pwdMaxAge").get();
    Date Today = new Date();
    System.out.println("maxAge"+maxAge);
    long curTime=(Today.getTime())-Long.parseLong(maxAge)*1000;"
    and then parse it and create a string time as follows
    String time=year+month+day+hour+minute+second+"Z";
    where "year" "month" etc were parsed from curTime
    now i can get the list by using following code
    "String filterCriteria="(&(objectclass=person)(pwdChangedTime>="+time+")";
    NamingEnumeration results = ctx.search(baseDN,filterCriteria, sc); "
    but the current time which i am getting is the time of my system not the time of ldap server
    so my questions are following;
    1.Can there is any way by which i can get the tivole sever's system time.
    2.If there is no way then can you suggest any other way to find out the list of user's whose passwords are expired.
    please help me.
    Thanks.
    Krishan Rathi.

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • Broadcasting fails when dialog user has initial password

    Hi,
    Has anyone found that if a user created as a dialog user has an initial password, broadcasting fails? 
    I found the workaround to this is to set the user type to "service" but this is not ideal in our situation.
    What are other people out there doing?
    We're using SSO currently with parameters set to allow single sign-on if the user has an initial password without needing to reset it.
    Regards
    Amir

    Hello,
    Why do you need to use the regasm utility from the post-build action?
    There is a difference between signing the assembly with a strong name and digital signature. The
    How to: Sign an Assembly with a Strong Name article in MSDN explains how to sign an assembly with a strong name (.snk). See
    How to digitally sign a strong named assembly for adding a digital signature.
    You may also find the
    What's the Difference, Part Five: certificate signing vs strong naming article helpful.

  • After I updated user for i phone 4 s iCloud password is no way I can not phone and e-mail address has been blocked. I did not bring the solution to Turkey APPLE chief BILKOM is forgotten the password and e-mail address in the e-mail address asking for hel

    After I updated user for i phone 4 s iCloud password is no way I can not phone and e-mail address has been blocked. I did not bring the solution to Turkey APPLE chief BILKOM is forgotten the password and e-mail address in the e-mail address asking for help from you I will make the iphone does not open e-mail address associated with it @hotmail.com mail to this address icloud iphone phone's password is forgotten, I want to thank you in advance for your help tell a method of opening up again.
    <Email Edited by Host>

    Welcome to the Apple Community.
    I have asked for your email address to be edited out. Posting your address in an open thread is a sure way to be bombarded by unwanted email, remember it will be here long after you have resolved your problem, for automated detection software to find.
    If you want people to contact you, enable others to see your email address in your profile.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID, verify the changes, enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    Apple Topluluk hoş geldiniz.
    Ben düzenlenebilir için e-posta adresi için istedi. Açık bir konu adres gönderme istenmeyen e-posta ile bombardıman bir emin yoludur, bulmak için otomatik algılama yazılımı için, size sorunu giderilmiştir sonra burada uzun olacak unutmayın.
    Eğer insanlar sizinle iletişim istiyorsanız, başkalarının profilinizde e-posta adresinizi görmelerini sağlar.
    Bu özellik onları çalıntı olduğunu bu işe yaramaz çalıntı telefonları için getirilmiştir.
    Ancak aynı zamanda kullanıcı Apple ile Apple ID ayrıntıları değişti ve iCloud hesabı için aynı değişiklik yapmamış ortaya çıkar / iOS 7 yükseltmeden önce cihaz üzerinde My Phone bul olabilir.
    Tek çözüm My Apple ID de Apple ile önceki durumuna geri Apple ID değiştirmek için, değişiklikleri doğrulamak cihazınızda talep olarak, şifreyi girin ve sonra kapatın "benim telefon bulmak".
    Daha sonra tekrar bugünkü durumuna Apple ID değiştirmek gerekir, bir kez daha doğrulamak cihazınızdan iCloud hesabı silmek ve daha sonra mevcut Apple kimliği kullanarak oturum açın. Son olarak, geri bir kez daha üzerinde "benim telefon bulmak" açın.

  • Hi, My problem is I cannot connect my apple tv to my account, the user name and password are definitely correct, I upgraded the software, reset the device, but no chance. What should I do?

    Hi, My problem is I cannot connect my apple tv to my account, the user name and password are definitely correct, I upgraded the software, reset the device, but no chance. What should I do?

    Try this:
    Reboot device by pressing both the home button and sleep/wake (power) buttons at the same time for 10-15 seconds until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings  (or for network connection issues 'reset network settings').
    (no media or data will be deleted from the device, this will only take a minute).

  • Mail ask for the password all the time

    Hello.
    For the last month I´ve been experiencing problems with my mail. It ask me for the password every few seconds. I´ve have already tried all the solutions published at the help page in apple the site, but the problem is still on.
    Could anyone of you give some help.
    Many thanks.
    PS: if someone could send me an answer in spanish, it could be easier for me.
    Thanks.
    IBook G4   Mac OS X (10.4.8)  

    Hola Luis.
    I’ll reply in English, amongst other reasons because that allows me to copy & paste between posts, but let me know if there is something you don’t fully understand. You can post in Spanish if you want. BTW, you can make your life easier in these forums by going to System Preferences > International and moving English to the top of the list. The next time you launch an application, it'll be all in English.
    Open /Applications/Utilities/Keychain Access, choose Keychain First Aid from the application menu, and proceed to repair the keychain. If that doesn’t work, you may try removing the password entry from the keychain and letting Mail create it again.
    Note that Mail often doesn’t correctly report what the problem really is. If Mail can connect to the server but cannot log into your mail account for some reason, it’ll ask for your password, regardless of whether that’s really the problem or not. Don’t keep entering the password every time, because that’s not the problem (click Cancel instead, and take the account back online afterwards).
    Some ISPs refuse connection attempts if they are too frequent, for example, or limit the number of simultaneous connections that are allowed from the same IP address, or the account may have become full, or there might be a problem with the network, or there might be a problem with the server... If the latter (i.e. if there is a problem with the network or the server), the problem will probably fix itself after some time for no apparent reason.
    Actually, if Mail asks for the password every few seconds, then you’re probably checking for mail too often, and that alone could be the reason you have this problem. What’s the time interval chosen in Preferences > General > Check for New Mail? If it’s set to Every minute, try changing it to Every 5 minutes.
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.
    Also, try using a different method to connect to Internet, if possible, or connecting the computer to Internet as directly as possible, i.e. bypassing any routers that might be present, using an ethernet cable instead of wireless, etc., and see whether that makes a difference.

  • Can I use user names and password of Microsoft Office Outlook for hyperion

    I'm new to Hyperion. Can anyone tell that can I use "user names" and "passwords" of Microsoft Office Outlook for login into hyperion applications.
    I'm not talking about single sign on, but want to use same user names and passwords as that in Outlook.
    ANy suggestions?

    That depends on how your Outlook authentication is configured.
    Hyperion is generally configured to authenticate against a network directory (NTLM, MSAD or LDAP). I'm not an Outlook expert, but my Outlook user ID and password is almost always my MSAD id and password (I change clients regularly, and it's almost always the same situation). So it's also usually the same as my Hyperion ID and password.
    Ask your Outlook administrator whether it uses (or syncs with) MSAD, NTLM or LDAP. If the answer is yes, then you're in good shape because Hyperion can use these as well.
    Hope this helps,
    - Jake

  • Imessage keeps saying user name or password is incorrect but it's the same apple id i use on the store

    imessage keeps saying user name or password is incorrect but it's the same apple id i use on the store. i've bought and updated apps with the id but imessages still wont work

    I have had the same problem.  I try and use imessage but it keeps saying user name or password incorrect. The password works when I log into gmail and I am certain I am typing it in correctly. I would appreciate any help!

  • MSDS - different e-mail-addresses for the sender

    Hi,
    we want to set up e-mail/INT for MSDS.
    Depending on the initiator we would like to have different e-mail addresses as sender. At the moment it's the e-mail-address of the batch-user of the job.
    - Can I split the jobs for each initiator? (How?)
    - Or do I have to use programming - if yes, where can I change the e-mail-address of the batch-user depending on the initiator?
    Thanks!
    P.C.

    Hello
    please check the available user exits in the report distribution process of EH&S. I am not quite sure but I believe there is no "direct" option to have this split e.g. per initiator or you must use one of the exits. But it is clear one could think about it using programming. In the central tables of report shipment the initiator (or sale org) is a central information which is processed and used (in SAP standard) in many areas in report shipment
    In http://help.sap.com/erp2005_ehp_04_sp/helpdata/en/a7/288aa30a6c11d28a220000e829fbbd/frameset.htm and other linked which I checked shortly I found no reference regarding an option like you described.
    PLease check especially this one:
    http://help.sap.com/erp2005_ehp_04_sp/helpdata/en/a7/288aa30a6c11d28a220000e829fbbd/frameset.htm.
    Here you get an overview of the process and all user exits which are processed. In principle you can "copy" the SAP one and create a "customer" specific one but I am not sure if you will find a suitable point to handle the eMail topic you mentioned.
    With best regars
    CB

  • Cannot Send Mail One of the Recipients Email Addresses is Invalid

    Cannot Send Mail One of the Recipients Email Addresses is Invalid
    This is the error message I keep getting on outgoing mail. Incoming mail works fine. Does anyone have any suggestions to try?

    You mean you can receive and send messages when you are connected to your wi-fi network at home with your internet service provider as the internet connection for your wireless network at home, but you are unable to send messages with this account when connected to AT&T's cellular network?
    If so, this leans toward your email account being provided by your internet service provider.
    Most internet service providers block the use of SMTP servers that are outside of the ISP's network or not provided by the ISP unless the SMTP server is authenticated. Not many ISPs provide an authenticated SMTP server with the email account they provide their customers.
    You can do one of two things. The iPhone includes AT&T's SMTP server to select as the SMTP server to use for this email account when you are connected to AT&T's cellular network, but you probably won't be able to use AT&T's SMTP server to send with the account when connected to your wi-fi network at home.
    Or you can switch to using an email account that provides an authenticated SMTP server. A Gmail account is one, and a MobileMe account is another.

  • HT4623 I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS

    I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS.

    http://support.apple.com/kb/he37

  • MAC OS Yosemite - CS6 - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one

    - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one window without having to be in full screen mode? I've managed to go some time like this, but right now it's just really annoying me. HELP!!!

    Just drag the small window to the top right below the toolbar, you'll see the area highlighted and when you drop it the file should dock.

  • I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    Only you can make that determination. All things being equal the 2.5 GHz model is slower.

  • Anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, less cheaper

    anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, with add costs?

    There are two versions of the current iPad, the WiFi only (which will work anywhere in the world, but only connect to WiFi networks) and the 3G/4G model. The latter will connect to 3G networks worldwide, as I understand it, but the only 4G networks it can connect to are in the US and Canada.

Maybe you are looking for

  • Belkin Mini Display Port to HDTV not working anymore with MBP

    I have a MBP V 10.7.5 and I was using a Belkin Mini Display Port to HDTV. This was working perfectly a few months ago and now when I try to connect, My Mac screen will turn blue for a minute but the TV will read "No Signal". There is nothing wrong wi

  • Spark textinput does not display unicode properly

    I need to type in some special charactors using unicode input method. (install microsoft pinyin, and use secondary inputs-> unicode input, and type "E826" into the textinput box) in spark textinput, the charactor is showing as a sqare; while mx texti

  • SpryAccordionDesignTime.js

    I just ran the updater and now when I open a page w/ a spry tabbed panel, I get the error: The following translators were not loaded due to errors: The following JavaScript file "Macintosh HD:Applications:Adobe Dreamweaver CS3:Configuration: Shared:S

  • Aperture 2.1.4 thumbnails problem

    aperture 2.1.4 does not halt thumbnails--cannot export nor see images on 970! How to stop? as I maylose 100's of hours...

  • TFS - Access Level - page not found when trying to add user

    When I'm trying to modify some group under Limited Access Level I cannot do that because of the following error: Page not found. wrapErrorCallback/</<@server/tfs/_static/tfs/12/_scripts/TFS/debug/Presentation/Scripts/TFS/TFS.Core.Ajax.js:175:37 endRe