Password Reset Portal SMS Gate Not Working

trying Microsoft code to enable One-Time Password with SMS Gate, no luck to make it work. Anyone can advise what's wrong of this code? 
Customer sms gateway requires POST method with 3 parameters: "password", "hp" and "smsmessage"
namespace Microsoft.IdentityManagement.Samples
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Net;
    using System.Text;
    using Microsoft.IdentityManagement.SmsServiceProvider;
    using System.Web;
    using System.Security.Cryptography;
    using System.IO;
    public class SmsServiceProvider : ISmsServiceProvider
        public void SendSms(string mobileNumber,
                            string message,
                            Guid requestId,
                            Dictionary<string, object> deliveryAttributes)
            mySMSProvider.SendSms(mobileNumber, message);
    class mySMSProvider
        static string RequestURL = "http://smsgw.abc.com/smsgateway/smsforad.php";
        mySMSProvider()
        public static int SendSms(string userMobileNumber, string message)
            WebClient wc = new WebClient();
            string requestData;
            requestData = Microsoft.IdentityManagement.Samples.mySMSProvider.GetRequestData(userMobileNumber, message);
            byte[] postData = Encoding.ASCII.GetBytes(requestData);
            byte[] response = wc.UploadData(mySMSProvider.RequestURL, postData);
            string result = Encoding.ASCII.GetString(response);  // result contains the error text
            int returnValue = System.Convert.ToInt32(result.Substring(0, 6), NumberFormatInfo.InvariantInfo);
            return returnValue;
        public static string GetRequestData(string mobile, string message)
            string myrequestData;
            myrequestData = "password=" + "password123"
                 + "&hp=" + System.Web.HttpUtility.UrlEncode(mobile)
                 + "&smsmessage=" + System.Web.HttpUtility.UrlEncode(message);
            return myrequestData;
Jason

There is some "well known" issue if you put more than one class into the dll. Try to insert all the logic to the SmsServiceProvider class.
Borys Majewski, Identity Management Solutions Architect (Blog: IDArchitect.NET)

Similar Messages

  • Password reset with external directory not working in realm mode

    I am using SUn acess manager 7 2005 @4 patch 5
    I have configured a realm to point to external directory .I am able to create the user in the subject tab. Able to authenticate to the user in realm and set its security question.
    But when i try to reset the password using /ampassowrd?relam=realmname
    I get an error message Error
    The password cannot be reset for this user.
    1) When i check the logs i find that user is being searched in amconfig direcectory and not the external directory which the realm points to?
    2) Also if i create add in datastrore the amsdk as well and create the user reset it get created in both external directory and amconfig directory?Then i am able to reset the password but it changes only in amconfig directory and not in external directory?
    Can some tell how to make sure that password reset looks at right directory based on relam

    have you had any breakthrough? I am in same situation here

  • Password Reset for Jabber Video not working

    I have a user (Win 7 x64) who has a valid @jabber.com address but forgot her password.  She has gone through the password website several times o assign herself a new password -- still will not log her in.
    We even tried uninstalling / reinstalling the Jabber 4.4 app -- no go.  There is another post with a Windows 8 person getting the same message....this person is runningh WIn 7 x64 which works with other Jabber Video clients in our dept.
    Really like to get this user up and running.  Any ideas?
    Thx

    I checked for background software per your recommendation and did find some software running.  I closed it, restarted Jabber, and the issue still persisted.  I do have another camera, my previous one, with that everything works perfectly fine.  With these new cameras though, it does not.
    I chcekd the stats of the call by clicking on "i", on both sides it shows transmitting at about 698kbit H.264, and receive is 0kbit.  This is the actual, while while signaled is showing 768 for send/receive.
    I decided to try bumping just the receive bandwidth since it looks like it's transmitting fine, just not being received on the other end.  So I tried both clients at 768 transmit, 1.0Mbit receive.  This call failed as well.  I will try a few more scenarios to see what happens.  Something is definitely not allowing it to downspeed properly.  By the way, I have tested this on Jabber 4.5 and 4.6 and the issue exists with both.
    EDIT:  Another weird bit of information, I just set both clients to 512k send/receive and it WORKED!  So it's something to do with 768k or speeds around there.  I tried 767k send/receive just to see if that was the case and it still did not work.  I don't understand why it works at a lower speed and not at 768k.

  • I am trying to log on to iwork but it keeps saying that my password is incorrect. I have already reset it and entered my new password and it still is not working. what should i do?

    I am trying to log on to iwork but it keeps saying that my password is incorrect. I have already reset it and entered my new password and it still is not working. what should i do?

    I really can't comprehend the logic that leads to believe that password for old apple id will come to e-mail for new id. Buy may be I just misunderstood something. Contact Apple for assist with password retrieval. If you can verify yourself as account owner they may be able to help you.

  • I am trying to buy music and I keep getting an error stating that my Apple ID has been disabled.  I reset my password but it still does not work.  What can I do?

    I am trying to buy music and I keep getting an error stating that my Apple ID has been disabled.  I reset my password but it still does not work.  What can I do?

    Crich,
    The usual reasons for an Apple ID getting disabled are either unauthorized activity or violations of the Terms & Conditions. 
    Submit your request to iTunes Customer Service and if appropriate, they will re-enable it.

  • Droid Razr Maxx HD Data & SMS does NOT work in South Korea

    If you are going to South Korea this phone only operates as a "dumb phone" for phone calls ONLY. Data & SMS does not work at all. I contacted Global Support daily for one week with no resolution! I received conflicting information with 2 support folks telling me that the fix was to do a factory reset. So I reluctantly did this and it did not fix anything. It only wasted my time especially re-installing all my apps, etc. Then 4 support folks told me that you should never do this out of the country!! Anyway the last person i spoke to which was a network technician was very honest. He told me that I was "SOL" and he had no idea how to fix this problem. He said that he would have to get some teams together to try to fix the problem. And I was told that I would receive an email with an update. And of course I have not received any email of correspondence from Verizon. Very frustrating...

    I found a solution. Okay so with the most recent update Verizon made the switch from sending text messages over their 1x network and moved them to their LTE (and possibly 3g) network, hence the reason they are sending so much faster. Today I was in a classroom that is underground and has terrible reception and noticed that I was getting delivery reports again but that my texts were sending slower, like they used to. I dug around in the phones programing menu and found a new option call "MO SMS over IMS" and it was enabled. Disabling it switches your texts back onto the old 1x network. So if you choose to make the switch, your delivery reports will come back but sending will go back to being a little slower. To get to this menu open up your dialer and type in ##7764726. Next hit send and when prompted with a password type in 000000 and hit verify. Scroll down to SMS/MMS settings and select it. Next scroll to the bottom, select "MO SMS over IMS", and disable it. Now your good delivery reports back!

  • OSX Server password reset portal doesn't communicate password requirements

    Here's the story:
    We are migrating our users to a new fileserver running OSX Server 2.2.2 on 10.8 from an existing 10.4 server.  We have prepopulated the user accounts with the same login names as our old server, and set temporary passwords for each user that they will need to reset.  The plan was to have each user set their custom password via the built in web portal.  We've got Windows and Mac Users, so we are expecting at least the windows users will have to set their passwords this way, as the Mac users can be forced to reset their password at first login.
    The issue is that we are are implementing stronger password requirements on the new server, but the password reset portal doesn't seem to communicate that at all.  When entering the existing password, and a new password that is not strong enough, we get the error:  "Your password could not be changed.  Please retype your old password and try again" which is misleading because it is an issue with the new password being too weak, not the old password being incorrect.
    Is this normal behavior for this reset portal?  It's pretty basic, so I wouldn't be surprised if that's just the way it is, but we are looking for a way to keep it as simple as possible for our users, and to avoid unnecessary confusion.
    For the record, our password requirements are:
    password minimum length = 8 characters
    passwords must contain:
    at least one letter
    at least one number
    at least one special character
    differ from last 5 passwords used
    be reset on first login

    Another helpful forum user said:
    Then you might try this procedure to create a new administrator account:
    http://osxdaily.com/2010/08/10/forgot-mac-password-how-to-reset-mac-password/
    Which i tried. I ran through the help link above which all seemed to work until the end... and i got this error...
    Which means i couldn't get to the part that sets up a new user. :-(

  • I have no sound for games in my iPad. I have tried the reset but it does not work. The speakers work as I have sound for music and videos.

    I have no sound for games in my iPad. I have tried the reset but it does not work. The speakers work as I have sound for music and videos.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) http://support.apple.com/kb/ht1430
    Check your settings. The iPads have a small switch on the right edge. http://support.apple.com/kb/ht1430 It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    iPhone: Can’t hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
    What this effectively does is to reset some of your Settings to factory default. It’s not a complete removal of settings. It removes all of your preferences for Wi-Fi, Bluetooth, Do No Disturb, Notifications, General, Sounds, Brightness & Wallpaper and Privacy. It doesn’t affect your data. All of your email accounts will remain intact, as well as any SMS text or iMessages.
     Cheers, Tom

  • Router Reset and Admin/PW Not working

    I'm trying to get to my router through my webbrowser. I put in the address and it asked for my username and password. I left the name blank and tried "admin" as the password but it didn't work. 
    I tried a whole bunch of different things after that: admin/pw/password/blank and all in different varriations.  But still no luck.
    I read on the forums here that I shoudl reset my router, so I held in the button for 30 seconds and it reset. I know it did becuase for my computer to get an internet connection it no longer needs the encryption that the router used to have.
    Since the router was reset, I went back and tried 'admin' as the password, but it STILL did not work. 
    Anyone have advice?

    Try disabling ALL software firewalls, antivirus software and any Proxy cache settings you have in your Web browsers
    Regards Simon
    NAS: TS-459 Pro - 3.6.1 Build0302T - 4 x 1TB Samsung HD103SJ : EXT4 - APC ES 700VA UPS
    QPKG: WordPress 3.4, TwonkyMedia 6.0.39 QPKG - Zenphoto1.4.2.1 [7802] - phpMyAdmin v3.3.10
    Network: Netgear DG834G V4.01.40 - DGTeam Rev. 0849 -> Cisco RV220W 1.0.4.13, Cisco SLM2008, Dlink DSM-520, Xbox360

  • Allow Anonymous Access to the Password Reset Portal

    How do I go about enabling Anonymous Access to the Password Reset Portal?
    The following instructions don't seem accurate anymore.  Has this setting changed with Sharepoint Services 3.0 SP2?
    When I click on "Settings" in Step 4 the only option displayed is "Permission Levels".
    Allow Anonymous Access to the password reset portal
    In this procedure you will configure the portal to allow Anonymous Access to users who need to reset their passwords.
    To allow anonymous access to the password reset portal
    Log on to the password portal (http://<portal hostname/PasswordPortal) as an administrator.
    On the top right hand side of the portal homepage click Site Actions, and then click Site Settings.
    Under Users and Permissions click Advanced Permissions.
    On the Permissions page, click Settings, and then select Anonymous Access.
    Under Anonymous users can access, select Entire Web site, and then click OK.

    Yes, that was very helpful.  Thanks! 
    Just in case that site dissapears and someone else needs this info, here it is:
    If you don’t see the “Anonymous Access” menu option in the “Settings” menu, it might not be turned on in Central Admin/IIS. You can manually navigate to “_layouts/setanon.aspx” if you want, but the options will be grayed out if it hasn’t been enabled in IIS
    First get to your portal. Then under “My Links” look for “Central Administration” and select it.
    In the Central Administration site select “Application Management” either in the Quick Launch or across the top tabs
    Select “Authentication Providers” in the “Application Security” section
    Click on the “Default” zone (or whatever zone you want to enable anonymous access for)
    Under “Anonymous Access” click the check box to enable it and click “Save”
    NOTE: Make sure the “Web Application” in the menu at the top right is your portal/site and not the admin site.
    You can confirm that anonymous access is enabled by going back into the IIS console and checking the Directory Security properties.
    Now the second part is to enable anonymous access in the site.
    Return to your sites home page and navigate to the site settings page. In MOSS, this is under Site Actions – Site Settings – Modify All Site Settings. In WSS it’s under Site Actions – Site Settings.
    Under the “Users and Permissions” section click on “Advanced permissions”
    On the “Settings” drop down menu (on the toolbar) select “Anonymous Access”
    Select the option you want anonymous users to have (full access or documents and lists only)
    Now users without logging in will get whatever option you allowed them.
    A couple of notes about anonymous access:
    You will need to set up the 2nd part for all sites unless you have permission inheritance turned on
    You must do both setups to enable anonymous access for users, one in IIS and the other in each site

  • IPAD Mini Locked after iOS upgrade, tried reset on iPAD did not work, plugged in and device not appearing in iTUNEs for reset/restore

    PAD Mini Locked after iOS upgrade, tried reset on iPAD did not work, plugged in and device not appearing in iTUNEs for reset/restore.  Just get an Apple Logo then a flashing blue screen as if it is caught booting up.   This has happened twice before and iTunes restore fixed it.  But this time device not appearing in iTunes.
    Running iTunes for PC.  But as stated restore has worked before!  Any help greatly appreciated!!

    Place the device in DFU mode and let iTunes restore the device to factory condition.

  • My ipod touch thinks headsets are plugged in as indicated when pressing volume control.  We did a reset but that did not work.  What is next?

    My ipod touch thinks headsets are plugged in as indicated when pressing volume control.  We did a reset but that did not work.  What is next?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • I have lost the password and the DVD is not working on my old mac G4 500mhz, how can I get back my password?

    I have lost my password and the DVD is not working on my old mac desktop G4 500mhz. I have tried use the boot up disk to change the admin password. But the DVD did not work. ( I did not touch this machine for years.) But i need retreive something , so I have tried the shell script in the terminal
    1. fsck-y and the mount-uw to try to change and find the service directory's plist to change the password. But after I get the mount -uw, it show illegal option message.
    What I can do now to solve this problem? in shell script or any other way?
    Thx in advance.
    Alfred

    Hi,
    A DVD drive that is not working after many years not used:
    most probably dust on the little laser lens.
    Take the drive out and if you can reach this lens: clean it with pure alcohol on Q-Tip.
    Many people throw away cd or dvd players all the time because they stopped working, and very often it can easily be fixed by cleaning this lens.
    I used to have a G5, where I couldn't access that lens. It was very sensitive to dust.
    I have fixed it several times with compressed air. One time I didn't have canned air, but a bikepump did the trick.
    If you have another mac, I'd try to access the G4 internal disk with firewire target disk mode.
    good luck

  • The monitor of my MacBook Pro suddenly became all black, I tried to reset but it did not work, what should I do? Why does this happen?

    The monitor of my MacBook Pro suddenly became all black, I tried to reset but it did not work, what should I do? Why does this happen?

    I advise to reply to the one you want to reply to.
    You have had good information here. I will not repeat that here.
    I would like to add:
    you have incompatible software: start in SafeMode, read Woodmeister and see if it is free of issues.
    Akamai is crap software needed or not, Huawei the same.
    It is very possible that the keygenerator you used for generating a key for some softwares has infected your mac.
    The non-regular software with the false key(s) are not compatible probably or generate malware. Luckily you can not update them automatically because the keygenerator blocked the software for contacting the developer... I propose to consider getting rid of those softwares by really good uninstalling.
    You have a beautiful mac, don't degenerate it with crapped software. There are alternatives for expensive software, for example Adobe Photoshop has a free alternative (with a less beautiful interface) in GIMP. And so on.
    Lex

  • Since my update, when I try to view videos(rather I already owned or just rented from iTunes) the movie starts playing then I get a pop up can't download view. I've reset my settings, still not working.

    Since my update, when I try to view videos(rather I already owned or just rented from iTunes) the movie starts playing then I get a pop up can't download view. I've reset my settings, still not working.

    You said:
    We still couldn't get it to stop timing out. I tried to download the firmware from iClarified but iTunes said it didn't recognise the software.
    Just what did yo do to gt iTunes to see the download:

Maybe you are looking for

  • Error  : Sales order 'create with Reference' to the contract

    We have made a value contract. Now we are trying to make a Sales order 'create with Reference' to the contract. when we do that, we am getting error 'copying material in any value contract item is not permitted' Any help or directions would be greatl

  • Not able to display javascript alert message from within a pl/sql block

    Hello, Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report. begin if :P1_ITEM I

  • 10.8.4 broke Exchange connectivity.

    Since applying the 10.8.4 update, one of my clients' MacBooks has been unable to update Calendar entries.  There was just an alert icon in the Calendars sidebar.  Mail worked normally.  I didn't check Notes or Contacts. I tried removing the Exchange

  • BDC recording for AS01

    hi all, how to do bdc recording for AS01.please send me step step by approach.

  • Rounding and displaying doubles

    How do you stop a double (eg 12646903) being displayed as 1.2646903E7? ??? . Lynda