LDAP Invalidate Credential Error 49

We have seen errors such as the following when users tried to change their password or when active sync flat file does a batch run.
Has anybody seen similar errors and what workaround if any we could try? Thanks in advance for any help.
Active Sync Logs ----
2009-08-03T12:01:56.955-0500: Result of Submit: <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE WavesetResult PUBLIC 'waveset.dtd' 'waveset.dtd'>
<WavesetResult>
<ResultItem type='error' status='error'>
<ResultError throwable='com.waveset.util.WavesetException'>
<Message>
<Text>Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'.</Text>
</Message>
<StackTrace>com.waveset.util.WavesetException: Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'.&
#xA;==> javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
     at com.waveset.adapter.LDAPRes
ourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2743)
     at com.waveset.adapter.LDAPResourceAdapterBase.makeConne
ction(LDAPResourceAdapterBase.java:2699)
     at com.waveset.adapter.LDAPResourceAdapterBase.updateAccounts(LDAPResourceAdapterB
ase.java:1141)
     at com.waveset.adapter.ResourceAdapterBase.updateAccount(ResourceAdapterBase.java:835)
     at com.waves
IdM system error report:
System Log Record Details
Timestamp Monday, August 3, 2009 12:01:56 PM CDT
Event
Server ldap2a
Severity Error
Component ActiveSync
Error Code AS001
Message Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'. javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
Timestamp Monday, August 3, 2009 12:02:09 PM CDT
Event SV-0803-170209
Server ldap2a
Severity Error
Component Server
Error Code ERROR
Message Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'. ==> javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
Reported cause com.waveset.util.WavesetException: Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'. javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
com.waveset.util.WavesetException: Could not authenticate to the LDAP server 'ldap2.itcs.northwestern.edu'.
==> javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.waveset.adapter.LDAPResourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2743)
at com.waveset.adapter.LDAPResourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2699)
at com.waveset.adapter.LDAPResourceAdapterBase.getUser(LDAPResourceAdapterBase.java:3253)
at com.waveset.adapter.LDAPResourceAdapterBase.getUser(LDAPResourceAdapterBase.java:3280)
at com.waveset.adapter.ResourceAdapterProxy.getUser(ResourceAdapterProxy.java:906)
at com.waveset.provision.FetchContext.doFetch(FetchContext.java:368)
at com.waveset.provision.FetchContext.processOp(FetchContext.java:230)
at com.waveset.provision.ProvisionThread.run(ProvisionThread.java:107)
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3014)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2960)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2762)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2676)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:288)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
at com.waveset.util.jndi.LdapContextFactory.makeLdapContext(LdapContextFactory.java:255)
at com.waveset.util.jndi.LdapContextPool.reserveContext(LdapContextPool.java:178)
at com.waveset.util.jndi.LdapContextFactory.getLdapContext(LdapContextFactory.java:171)
at com.waveset.adapter.LDAPResourceAdapterBase.connect(LDAPResourceAdapterBase.java:2944)
at com.waveset.adapter.LDAPResourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2732)
... 7 more
Wrapped exception:
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3014)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2960)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2762)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2676)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:288)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
at com.waveset.util.jndi.LdapContextFactory.makeLdapContext(LdapContextFactory.java:255)
at com.waveset.util.jndi.LdapContextPool.reserveContext(LdapContextPool.java:178)
at com.waveset.util.jndi.LdapContextFactory.getLdapContext(LdapContextFactory.java:171)
at com.waveset.adapter.LDAPResourceAdapterBase.connect(LDAPResourceAdapterBase.java:2944)
at com.waveset.adapter.LDAPResourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2732)
at com.waveset.adapter.LDAPResourceAdapterBase.makeConnection(LDAPResourceAdapterBase.java:2699)
at com.waveset.adapter.LDAPResourceAdapterBase.getUser(LDAPResourceAdapterBase.java:3253)
at com.waveset.adapter.LDAPResourceAdapterBase.getUser(LDAPResourceAdapterBase.java:3280)
at com.waveset.adapter.ResourceAdapterProxy.getUser(ResourceAdapterProxy.java:906)
at com.waveset.provision.FetchContext.doFetch(FetchContext.java:368)
at com.waveset.provision.FetchContext.processOp(FetchContext.java:230)
at com.waveset.provision.ProvisionThread.run(ProvisionThread.java:107)

check the credentials for the LDAP resource before checking the wf trace.check for testconfiguration of the corresponding LDAP Resource.

Similar Messages

  • Error 49: LDAP Invalid credential Supplied when installing Identity Server

    I am installing oracle Acess manager with Active directory for windows server 2003. While installing
    the identity server we facing the issue with
    Error 49: LDAP Invalid credential supplied. Please see the attached screen shot for more details.

    At which stage are getting this error?
    If you are getting this error after specifying LDAP Directory details during identity server install, make sure that your username/password for AD are correct.
    if your domain name = example.com
    and the user you are using is under cn=users in AD use:
    1. cn=your_username,cn=users,dc=example,dc=com
    and your password
    2. if this doesn't work, try:
    [email protected]
    and your password.

  • ORA-31202: DBMS_LDAP: LDAP client/server error: Invalid credentials

    Hey Guys,
    I have an application with LDAP authentication and a custom login page (pg 101). When I run this app, the login page displays first, logs me in and logs out fine. However, when I branch to this application from another application, the login page shows up with the following error:
    ORA-31202: DBMS_LDAP: LDAP client/server error: Invalid credentials
    Error ERR-1082 Error in executing authorization scheme code.
    I looked at debug and this is happening because when this page is loaded, it goes to my authentication scheme and tries to authenticate me even though I havnt logged in and because no user exists at this point the error happens.
    I have set the login page to 'Page is Public' and have also used the following code in the authentication scheme's Page Sentry Function:
    IF APEX_CUSTOM_AUTH.CURRENT_PAGE_IS_PUBLIC = TRUE THEN;
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Any ideas of how I can stop my login page from being authenticated? Or where I am going wrong
    Thanks
    -Mark

    Jes,
    I could get it work !!!! my complete code
    DECLARE
    l_attributes wwv_flow_global.vc_arr2;
    l_attribute_values wwv_flow_global.vc_arr2;
    l_msg dbms_ldap.message;
    l_entry DBMS_LDAP.message;
    l_session DBMS_LDAP.session;
    l_ber_element DBMS_LDAP.ber_element;
    l_attr dbms_ldap.string_collection;
    l_attr_name VARCHAR2(256);
    l_vals DBMS_LDAP.string_collection;
    retval PLS_INTEGER;
    BEGIN
    l_session := DBMS_LDAP.init('server', '389');
    retval := DBMS_LDAP.simple_bind_s(l_session,'cn=myid,cn=na', 'mypwd');
    dbms_output.put_line('Retval -> ' || retval);
    l_attr(1) := '*'; -- retrieve all attributes
    retval := DBMS_LDAP.search_s(
    ld => l_session,
    base => 'ou=xx,o=xx',
    scope => DBMS_LDAP.SCOPE_SUBTREE,
    filter => 'uid=myid',
    attrs => l_attr,
    attronly => 0,
    res => l_msg);
    dbms_output.put_line('Retval 2 -> ' || retval);
    dbms_output.put_line('msg : ' || l_msg);
    IF DBMS_LDAP.count_entries(ld => l_session, msg => l_msg) > 0 THEN
    -- Get all the entries returned by our search.
    l_entry := DBMS_LDAP.first_entry(ld => l_session,
    msg => l_msg);
    << entry_loop >>
    WHILE l_entry IS NOT NULL LOOP
    -- Get all the attributes for this entry.
    DBMS_OUTPUT.PUT_LINE('---------------------------------------');
    l_attr_name := DBMS_LDAP.first_attribute(ld => l_session,
    ldapentry => l_entry,
    ber_elem => l_ber_element);
    << attributes_loop >>
    WHILE l_attr_name IS NOT NULL LOOP
    -- Get all the values for this attribute.
    l_vals := DBMS_LDAP.get_values (ld => l_session,
    ldapentry => l_entry,
    attr => l_attr_name);
    << values_loop >>
    FOR i IN l_vals.FIRST .. l_vals.LAST LOOP
    DBMS_OUTPUT.PUT_LINE('ATTIBUTE_NAME: ' || l_attr_name || ' = ' || SUBSTR(l_vals(i),1,200));
    END LOOP values_loop;
    l_attr_name := DBMS_LDAP.next_attribute(ld => l_session,
    ldapentry => l_entry,
    ber_elem => l_ber_element);
    END LOOP attibutes_loop;
    l_entry := DBMS_LDAP.next_entry(ld => l_session,
    msg => l_entry);
    END LOOP entry_loop;
    END IF;
    retval := DBMS_LDAP.unbind_s(l_session);
    END;
    thank you :D

  • Help on ldapsearch: ldap_search: Can't connect to LDAP server  -- No error

    Hi,
    I just want to do a basic search
    ldapsearch -h "xxx" -b "dc=yyy.com" -s sub "objectclass=*"
    Here is what I got:
    ldap_search: Can't connect to the LDAP server -- No error
    Please help
    Thanks,
    Lynne

    Since you havent specified the -p (port) option, the default is taken to be 389. You might want to check that first.
    If thats fine, try to ping the host you are trying to access.
    One of the above shd solve your problem.

  • LDAP users Faicng Error While Accessing the ESS Iviews in Portal

    Hi,
    My Portal is SAP EP 7.0 SP20 And ECC 6.0 SP16.
    UME users able to access the ESS MSS Iviews.But only one LDAP User only access ESS/MSS Iviews Other getting the Below error.
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.     
    Please contact your system administrator     
    Syntax error in program CL_XSS_CAT_BUFFER=============CP        ., error key: RFC_ERROR_SYSTEM_FAILURE     
    Syntax error in program CL_XSS_CAT_BUFFER=============CP        ., error key: RFC_ERROR_SYSTEM_FAILURE:
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Syntax error in program CL_XSS_CAT_BUFFER=============CP        ., error key: RFC_ERROR_SYSTEM_FAILURE
                    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
                    at com.sap.xss.ser.xssmenu.fc.ModelHandler.onInit(ModelHandler.java:205)
                    at com.sap.xss.ser.xssmenu.fc.wdp.InternalModelHandler.onInit(InternalModelHandler.java:428)
                    at com.sap.xss.ser.xssmenu.fc.FcXssMenu.setPersonnelNumber(FcXssMenu.java:570)
                    at com.sap.xss.ser.xssmenu.fc.FcXssMenu.onInit(FcXssMenu.java:292)
                    at com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenu.onInit(InternalFcXssMenu.java:455)
                    at com.sap.xss.ser.xssmenu.fc.FcXssMenuInterface.onInit(FcXssMenuInterface.java:165)
                    at com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenuInterface.onInit(InternalFcXssMenuInterface.java:389)
                    at com.sap.xss.ser.xssmenu.fc.wdp.InternalFcXssMenuInterface$External.onInit(InternalFcXssMenuInterface.java:546)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)
                    at com.sap.pcuigp.xssutils.navi.FcNavigation.onInit(FcNavigation.java:314)
                    at com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigation.onInit(InternalFcNavigation.java:358)
                    at com.sap.pcuigp.xssutils.navi.FcNavigationInterface.onInit(FcNavigationInterface.java:145)
                    at com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigationInterface.onInit(InternalFcNavigationInterface.java:142)
                    at com.sap.pcuigp.xssutils.navi.wdp.InternalFcNavigationInterface$External.onInit(InternalFcNavigationInterface.java:278)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)
                    at com.sap.pcuigp.xssutils.roadmap.VcRoadmap.onInit(VcRoadmap.java:188)
                    at com.sap.pcuigp.xssutils.roadmap.wdp.InternalVcRoadmap.onInit(InternalVcRoadmap.java:162)
                    at com.sap.pcuigp.xssutils.roadmap.VcRoadmapInterface.onInit(VcRoadmapInterface.java:153)
                    at com.sap.pcuigp.xssutils.roadmap.wdp.InternalVcRoadmapInterface.onInit(InternalVcRoadmapInterface.java:144)
                    at com.sap.pcuigp.xssutils.roadmap.wdp.InternalVcRoadmapInterface$External.onInit(InternalVcRoadmapInterface.java:220)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
                    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
                    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:782)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:302)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
                    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
                    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
                    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869)
                    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:229)
                    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1344)
                    at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
                    at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)
                    at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:193)
                    at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
                    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:782)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:302)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
                    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
                    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
                    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Syntax error in program CL_XSS_CAT_BUFFER=============CP        ., error key: RFC_ERROR_SYSTEM_FAILURE
                    at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
                    at com.sap.pcuigp.xssutils.xssmenu.model.MenuModel.hrxss_Ser_Getmenudata(MenuModel.java:171)
                    at com.sap.pcuigp.xssutils.xssmenu.model.Hrxss_Ser_Getmenudata_Input.doExecute(Hrxss_Ser_Getmenudata_Input.java:137)
                    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
                    ... 76 more
    Thanks & Regrads,
    Subba Rao

    Hi,
    Now every user facing the same error while accessing ESS Iviews from Portal.
    in ST22 Dump is created.
    What happened?                                                                                |
    Error in the ABAP Application Program
    The current ABAP program "CL_XSS_CAT_TIME_SHEET=========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "CL_XSS_CAT_BUFFER=============CP " in include
    "CL_XSS_CAT_BUFFER=============CM00C " in
    line 50:
    ""L_CATSDB" and "L_CATSDBCOMM" are not mutually convertible. In Unicode"
    " programs, "L_CATSDB" must have the same structure layout as "L_CATSDB"
    "COMM", independent of the length of a Unicode character."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "CL_XSS_CAT_TIME_SHEET=========CP" had to be
    terminated because it has
    |    come across a statement that unfortunately cannot be executed.
    What we need to resolve the above issue.
    Thanks & Regards,
    Subba Rao

  • After installation trying to start the portal but get credential error

    Hi
    I download the SAP Portal 7 and installed it as typical installation on Win XP. During the install it was asked from the wizard to put the master password. I did it and the installation was successfully finisched. Trying to start the server from the administration console i was asked to authenticate and put the username and password. After typing of the credential data i get in a message box: "invalied credential, start faild: 2"  and the start of the server fail. I retyped and even reinstall the Portal 2 times to be sure that i do not make a mistake by typing the master password but each time i get the same error!!!!!
    I installed it later again as custom installation and step by step put all neccessary passwords and the result was the same
    Please help to resolve this problem and get the portal a start
    Thank you for your help

    Hi
    Once you power on your unit keep tapping the F10 key go to Diagnostics menu Run the Hard drive & Memory test in case any test fails you need to replace the part. If both the test passes please let me know.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Ldap function gives errors in apex 4.1.1

    Hi all,
    I have a custom function for ldap authentication.
    create or replace
    FUNCTION bgt_ldap_authenticatie_func (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
    RETURN BOOLEAN
    AS
        l_ldap_host     VARCHAR2(100) := 'domain';
        l_ldap_port     VARCHAR2(4)   := '389';
        l_session       DBMS_LDAP.SESSION;
        l_retval        PLS_INTEGER;
        l_login_result  BOOLEAN := true;
        l_error VARCHAR2(4000);
    BEGIN
        IF p_password IS NULL THEN
            l_login_result := FALSE;
        ELSE
            -- I. LDAP-Login
            BEGIN
                -- LDAP Exceptions
                DBMS_LDAP.USE_EXCEPTION := TRUE;
                -- LDAP-Handle initialiseren ...
                l_session := DBMS_LDAP.INIT(
                      hostname  => l_ldap_host
                    , portnum   => l_ldap_port
                l_retval := DBMS_LDAP.SIMPLE_BIND_S(
                      ld        => l_session
                    , dn        => 'domain\' || LOWER(p_username)
                    , passwd    => p_password
                -- Afmelden van LDAP Server.
                l_retval := DBMS_LDAP.UNBIND_S(ld => l_session);
                -- Registratie was succesvol.
                l_login_result := TRUE;
            EXCEPTION WHEN OTHERS THEN
                l_login_result := FALSE;
            END;
        END IF;
        RETURN l_login_result;
    END;This is working fine on Apex 3.2 and Oracle 10g.
    I now have a development environment with apex 4.1.1 and Oracle 11g.
    I have run above function, with success (no compilation errors).
    I then go to authentication schemes to create my ldap authentication:
    host: domain
    port: 389
    Distinguished Name (DN) String: ou=domain,ou=New Security Groups,ou=Applications,cn=Budgeting_Dev
    Use Exact Distinguished Name (DN): Yes     
    LDAP Username Edit Function: return bgt_ldap_authenticatie_func;      
    When I click on the create button, I get
    1 error has occurred
        ORA-06550: line 5, column 8: PLS-00382: expression is of wrong type ORA-06550: line 5, column 1: PL/SQL: Statement ignoredWhy is it that I'm getting an error when trying to create the authentication when the function has been successfully compiled?
    Thanks,
    Diana

    Hi Diana,
    in addition to Christian comment, the "LDAP Username Edit Function" attribute expects a function which returns VARCHAR2 and not BOOLEAN as your function returns. It should also not be used to actually perform a LDAP lookup, instead it returns the LDAP Username you want to give APEX to perform the LDAP lookup.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Invalid name/credential error

    Hi,
    When I start the iFS the CupServer wont start.
    The CupServer.log looks like this:
    arg[0]: null
    arg[1]: ManagerID=5509
    arg[2]: ServerName=CupServer
    arg[3]: parameterfile=D:\oracle\iSuites\ifs1.1\settings\CupServer.def
    arg[4]: outputfile=D:\oracle\iSuites\ifs1.1\log\CupServer.log
    arg[5]: PassCredentials=true
    SR Event: ID:5634 PENDING SPECIAL SUBTYPE:13 5681L
    SR Event: ID:5634 COMMIT SPECIAL SUBTYPE:13 5681L
    adding session to the Anonymous session pool
    Error starting CommandlineUtilityServer server on port 4180
    Invalid credentials specified
    oracle.ifs.common.IfsException: IFS-21008: Login failure
    oracle.ifs.common.IfsException: IFS-10170: Invalid name/credential
    CommandlineUtilityServer not started
    I've changed the default password for the ifssys user. Could this have anything to do with my problems?
    The iFS is installed on a win2000 server.
    null

    In the cupserver properties file,, under the directory service, change the following property
    CaseSensitiveAuthentication=true

  • Web content, user not authorized, credential error

    I'm trying to do a query from the web, and am running into a "The user was not authorized" error, "The credentials provided for the Web source, are invalid. Please update the credentials..."
    I can use MSIE to access the exact same URL with the exact same credentials, using "Basic" web authentication, and it works fine.
    Even more strangely, looking through my web server logs, apparently Power Query successfully authenticates the first time, but then it repeats the request (perhaps looking at additional tables in the output?) and then fails to authorize.
    And, if I intentionally typo the end of the URL, I get a '404 not found', which you can only get if you successfully authorize!
    The following lines are from the web server access log, only showing testing instances from Power Query.
    First the intentional typo:
    [13146] aaa.bbb.ccc.ddd- ed [11/Sep/2014:16:03:12 -0500] "GET /cgi-bin/XXXXXXXz HTTP/1.1" 404 320
    [13146] aaa.bbb.ccc.ddd - ed [11/Sep/2014:16:03:13 -0500] "GET /cgi-bin/XXXXXXXz HTTP/1.1" 404 320
    The " - ed" shows that I successfully authenticated.
    Then, with the correct spelling of the end of the URL:
    [12617] aaa.bbb.ccc.ddd - ed [11/Sep/2014:16:03:51 -0500] "GET /cgi-bin/XXXXXXXX HTTP/1.1" 200 4007
    [13156] aaa.bbb.ccc.ddd - - [11/Sep/2014:16:03:52 -0500] "GET /cgi-bin/XXXXXXXX HTTP/1.1" 401 479
    [13146] aaa.bbb.ccc.ddd - ed [11/Sep/2014:16:03:53 -0500] "GET /cgi-bin/XXXXXXXX HTTP/1.1" 200 4007
    For some reason, Power Query sends the request 3 times. The first and third times successfully authenticate (" - ed", and a "200" response code). But the second time fails to authenticate, and apparently, that's all that Power Query cares
    about, since I get a "The user was not authorized" error.
    Any ideas? I tried enabling tracing, but I can't discern anything useful in the log file.
    Thanks,
    Ed

    You can use "send a frown" from inside the addin to report this as a bug. However, I think this is a known issue. We have to load the web page into IE in order to get the DOM, and I think we don't have any way to set the credential for IE.

  • Host Credential error

    I tried to perform backup using EM and received error that the password is not correct. I am sure that I entered the password and user name of the database server correctly in the host credential grid.

    1. Control Panel, Administrative Tools.
    2. Click on Local Security Policy.
    3. Local Policies, User Rights Assignment.
    4. Double click, 'Log on as a batch job'.
    5 provide usename along with domain i.e co.uk\foo

  • SquirrelMail LDAP address book error

    Hello all - over the weekend I upgraded my OD Master/LDAP server and my Mail server (two separate boxes) to v10.5.5 of OS X server, and now my users are reporting that they can no longer use our LDAP-integrated address book in SquirrelMail... I tried it myself just now and get this:
    "Error initializing LDAP server password.myserver.com: [ServerName] Protocol error"
    I didn't change the search base I had been using before (dc=password,dc=myserver,dc=com) on either the LDAP server or the Mail server, so I don't know what has happened here... I re-ran and checked the SquirrelMail config (conf.pl) and even removed the previous LDAP server entry and re-added the server, and tried changing the 'use Javascript' search (with both HTML and Java) but am still getting the same error.
    I don't see anything pop up in the logs on either machine when I try to run the address book feature in squirrel mail and get that error.
    Can anyone help me troubleshoot this?
    Thank you
    BC

    Whee! I just figured this one out for us!
    I had updated our SquirrelMail per the http://osx.topicdesk.com tutorial and couldn't get this to work.
    What I finally was able to figure out was that I needed the right entries and not modify my slapd files on the directory master.
    From terminal:
    cd /usr/share/squirrelmail/config
    ./conf.pl
    Pick option 6
    Pick option 1
    You type in "l" to list your entries, and you may want to delete what's there by putting in "- #" where # is the number of the entry from the list.
    Press + to add a new entry
    For Hostname: odmaster.stanwood.wednet.edu (replace with yours)
    For Base DN: cn=Users,dc=odmaster,dc=stanwood,dc=wednet,dc=edu (replace the dc's with your info, keep Users, important part!!).
    For Port: 389
    The rest you can generally fill in except for when you get to protocol, that should be "3"
    Hit "d" for done, "S" to save, "Q" to quit and then try out your settings!
    Good luck!!
    Oh and this did work for us even tho we are using SSL for TLS support for the clients on our directory master. It also only pulls up people with eMail addresses in the directory record, not all of our thousands of students who also happen to be in there.

  • VAMT LDAP Invalid Pointer error after partial search

    I've been looking and looking for a couple days now and haven't found anything that encompasses all the symptoms I'm having here so here goes nothing.
    Using VAMT 2.0, I'm attempting to search the whole directory for all machine accounts that are not servers, and are enabled. My LDAP URL query has evolved significantly in my testing, but I still cannot seem to get around the error.
    My Progression so far:
    LDAP://corp.domain.com:389/DC=corp,DC=domain,DC=com??sub?(&(objectCategory=computer)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!operatingSystem=*server*))
    ADUC: 1775 results
    VAMT: 3 results
    LDAP:///??sub?(&(objectCategory=computer)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!operatingSystem=*server*))
    ADUC: 1775 results
    VAMT: 3 results
    ^Expected^
    LDAP:///??sub?(&(objectCategory=computer)(!userAccountControl=4098)(!operatingSystem=*server*))
    ADUC: 1785 results
    VAMT: 6 results
    LDAP:///??sub?(&(objectCategory=computer)(userAccountControl=4096)(!operatingSystem=*server*))
    ADUC: 1752 results
    VAMT: 621 results
    LDAP:///??sub?(&(objectClass=computer)(userAccountControl=4096)(!operatingSystem=*server*))
    ADUC: 1752 results
    VAMT: 621 results
    I think you can see my frustration. I theorize that VAMT is hitting an object that doesn't have any of those items to query and is crashing out, but this is totally a theory.
    My end-goal is to use VAMT from the command line to help us audit our MS software much more accurately than SCCM is and to help us with Volume licensing true-up. Maybe, if I get this working I can setup the scripts to auto resolve some license issues, but
    I'll work on that later. Anyone have an idea on why VAMT might be acting this way?

    Hi,
    Check the following in debug mode .
    I think value of s_from_rec is getting ZERO, check what is the exact reason. The value of  s_from_rec is always should be greater than ZERO.
    if s_dataset_lines le s_to_rec. "Last package 
    >>>>> append lines of lt_dataset 
    157 from s_from_rec to s_dataset_lines 
    158 to e_t_data. 
    regards,
    Raju

  • Mail for Exchange credential error or corrupted

    Hello everybody. I have a latest firmware update (V 06.41.3.0) Nokia E50 and Mail for Exchange latest update also (1.06) installed on it.
    In my windows installation there are a policy to change password every 30 days and all works fine in my phone after first day I change password in my Windows account for policy reasons. My problem is as follows:
    I have a M4E configuration working correctly. My first syncronisation works fine and I have all my Exchange contacts, Calendar and Mail. This works fine for several times for several hours but suddenly the sync process locks my user account in Windows and I have a message in device noting this situations. After this situation, I call to my Help Desk to unlock user account and all begins to work fine without changing nothing included password credential in M4E.
    Why M4E locks my Windows user account?
    Looks like M4E sometimes doesn't read password correctly...I'm sure that action that lock my Windows account is M4E syncronisation because log in Front-End server has 3 times a HTTP 401 message comming from my device.
    What happen? my account has any problem? what do you think?....any clue will be appreciate...
    Regards
    Daniel

    Hey All, I had these problems:
    07/04/2008 10:53:46 HTTP error code=401
    07/04/2008 10:53:46 HTTP Server Error 401: UnAuthorized
    ...and the exchange administrator sorted it out for me straight away as below;
    It’s the IIS settings that changed. I can only assume that it was some update that was applied but I don’t know who did it.
    The IIS security settings need to be...
    For the Exchange web site and the Microsoft-Server-Activesync site and the OMA site.
    They should be setup for Anonymous access for the ExchWeb site.
    The default domain should be your AD domain name.
    This configuration works.
    A screen capture that describes this is available here:
    http://farm3.static.flickr.com/2235/2398972715_e1ba4ca6ec.jpg?v=0
    Hope this helps.
    Luke.

  • Connection to LDAP server ..ERROR

    Hello ,
    I am new to coding and I am trying to initiate a connection with the LDAP server but I am not able to get going with the connection..The DBMS_LDAP package is available in the SYS schema in toad.And I am trying to accesss it from the APPS schema.So this is the code that I had written and the errors are mentioned below.So can anyone pls help in this regard...
    DECLARE
         ldap_host          VARCHAR2(256);
         ldap_port           PLS_INTEGER;
         l_session          SYS.DBMS_LDAP.session;
    BEGIN
         ldap_host := 'entro-dev.cisco.com';
         ldap_port := 389;
         l_session := SYS.DBMS_LDAP.init(ldap_host,ldap_port);
    END;     
    ERRORS...
    The following error has occurred:
    ORA-04068: existing state of packages has been discarded
    ORA-04067: not executed, package body "SYS.DBMS_LDAP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 8
    Thanks,
    AK

    I have fixed this problem successfully.
    The problem was with the referral attribute of the cfldap tag.
    After adding this (referral="yes") attribute to my code I am able to login into my website.
    <cfldap action="QUERY" server="#application.LDAPServer#" port="#application.LDAPPort#" start="#application.LDAPBase#" name="search" attributes="alias, dn, uid, technicalCareerLevel, locationorgunit, givenName, sn" filter="#filter#" scope="SUBTREE" maxRows="2" referral="yes">
    Any way thanks for your assistance!!!!!

  • Invalid credential error

    Hi,
    I have used below code & get error like
    AdApiError Code: 105 Error Code: InvalidCredentials Message: Authentication failed. Either supplied credentials are invalid or the account is inactive. But i have all credentials correctly... 
    <?php
    // Include the Bing Ads namespaced class files available 
    // for download at http://go.microsoft.com/fwlink/?LinkId=322147 
    include 'bingads\BulkClasses.php'; 
    include 'bingads\ClientProxy.php'; 
    // Specify the BingAds\Bulk objects that will be used. 
    use BingAds\Bulk\DownloadCampaignsByCampaignIdsRequest; 
    use BingAds\Bulk\BulkDownloadEntity; 
    use BingAds\Bulk\DataScope; 
    use BingAds\Bulk\CampaignScope; 
    use BingAds\Bulk\GetDetailedBulkDownloadStatusRequest; 
    use BingAds\Bulk\DownloadStatus; 
    use BingAds\Bulk\DownloadFileType; 
    use BingAds\Bulk\PerformanceStatsDateRange; 
    use BingAds\Bulk\CustomDateRangeEnd; 
    use BingAds\Bulk\CustomDateRangeStart; 
    use BingAds\Bulk\Date; 
    use BingAds\Bulk\GetBulkUploadUrlRequest; 
    use BingAds\Bulk\ResponseMode; 
    use BingAds\Bulk\GetDetailedBulkUploadStatusRequest; 
    // Specify the BingAds\Proxy objects that will be used. 
    use BingAds\Proxy\ClientProxy; 
    // Disable WSDL caching. 
    ini_set("soap.wsdl_cache_enabled", "0"); 
    ini_set("soap.wsdl_cache_ttl", "0"); 
    // Specify your credentials.
    $UserName = "******";  //my bing ads username
    $Password = "******";  //my bing ads password
    $DeveloperToken = "*******"; //token get from developer page
    $AccountId = *****;  //In bing billing page
    $CustomerId = *****;  //In bing billing page
    // Bulk WSDL 
    $wsdl = "https://api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V9/BulkService.svc?singleWsdl"; 
    // The full path to the bulk file. 
    $BulkFilePath = "c:\\bing\\"; 
    // The full path to the previously extracted bulk file. 
    // This file is used to access the last sync time. 
    $ExtractedFilePath = "c:\\bulk\\extracted\\accounts.csv"; 
    // The full path to the upload result file. 
    $UploadResultFilePath = "c:\\bulk\\uploadresults.zip"; 
    // Specifies the bulk file format. 
    $FileFormat = DownloadFileType::Csv; 
    // Confirm that the download folder exist; otherwise, exit. 
    $length = strrpos($BulkFilePath, '\\'); 
    $folder = substr($BulkFilePath, 0, $length); 
    if (!is_dir($folder)) 
        printf("The output folder, %s, does not exist.\nEnsure that the " . 
            "folder exists and try again.", $folder); 
        return; 
    try 
        $proxy = ClientProxy::ConstructWithAccountAndCustomerId($wsdl, $UserName, $Password, $DeveloperToken, $AccountId, $CustomerId, null); 
        // Use the bulk service to download a bulk file. 
        // The campaigns must all belong to the same account. 
        $campaigns = array(); 
        foreach ($CampaignIds as $id) 
            $scope = new CampaignScope(); 
            $scope->CampaignId = $id; 
            $scope->ParentAccountId = $AccountId; 
            $campaigns[] = $scope; 
        $dataScope = DataScope::EntityData; 
        $entities = array ( 
            BulkDownloadEntity::Ads, 
            BulkDownloadEntity::AdGroups, 
            BulkDownloadEntity::Campaigns, 
            BulkDownloadEntity::Keywords 
        $formatVersion = "2.0"; 
        $lastSyncTimeInUTC = GetLastSyncTime($ExtractedFilePath); 
        // You may include a non-null date range if the lastSyncTime is null, and the data scope includes 
        // either EntityPerformanceData, BidSuggestionsData, or QualityScoreData. 
        $performanceStatsDateRange = new PerformanceStatsDateRange(); 
        $performanceStatsDateRange->CustomDateRangeEnd = new Date(); 
        $performanceStatsDateRange->CustomDateRangeEnd->Day = 15; 
        $performanceStatsDateRange->CustomDateRangeEnd->Month = 9; 
        $performanceStatsDateRange->CustomDateRangeEnd->Year = 2013; 
        $performanceStatsDateRange->CustomDateRangeStart = new Date(); 
        $performanceStatsDateRange->CustomDateRangeStart->Day = 15; 
        $performanceStatsDateRange->CustomDateRangeStart->Month = 9; 
        $performanceStatsDateRange->CustomDateRangeStart->Year = 2013; 
        // GetDownloadRequestId helper method calls the corresponding Bing Ads service operation 
        // to request the download identifier. 
        $downloadRequestId = GetDownloadRequestId( 
                $proxy, 
                $campaigns, 
                $dataScope, 
                $FileFormat, 
                $entities, 
                    $formatVersion, 
                $lastSyncTimeInUTC, 
                null 
        $waitTime = 5 * 1;  
        if ($downloadRequestId != null) 
            printf("Download Request Id: %s\n", $downloadRequestId); 
            $downloadSuccess = false; 
            // This sample polls every 30 seconds up to 5 minutes. 
            // In production you may poll the status every 1 to 2 minutes for up to one hour. 
            // If the call succeeds, stop polling. If the call or  
            // download fails, the call throws a fault. 
            for ($i = 0; $i < 10; $i++) 
                sleep($waitTime); 
                // GetDownloadRequestStatus helper method calls the corresponding Bing Ads service operation  
                // to get the download status. 
                $downloadRequestStatus = GetDownloadRequestStatus( 
                    $proxy,  
                    $downloadRequestId 
                if (($downloadRequestStatus != null) && ($downloadRequestStatus == "Completed")) 
                    $downloadSuccess = true; 
                    break; 
            if ($downloadSuccess) 
                $downloadUrl = GetDownloadUrl( 
                        $proxy, 
                        $downloadRequestId 
                printf("Downloading from %s.\n\n", $downloadUrl); 
                DownloadFile($downloadUrl, $BulkFilePath); 
                printf("The download file was written to %s.\n", $BulkFilePath); 
            else // Pending 
                printf("The request is taking longer than expected.\n " . 
                        "Save the download request ID (%s) and try again later.\n", 
                        $downloadRequestId); 
    catch (SoapFault $e) 
        // Output the last request/response. 
        print "\nLast SOAP request/response:\n"; 
        print $proxy->GetWsdl() . "\n"; 
        print $proxy->GetService()->__getLastRequest()."\n"; 
        print $proxy->GetService()->__getLastResponse()."\n"; 
        // Bulk service operations can throw AdApiFaultDetail. 
        if (isset($e->detail->AdApiFaultDetail)) 
            // Log this fault. 
            print "The operation failed with the following faults:\n"; 
            $errors = is_array($e->detail->AdApiFaultDetail->Errors->AdApiError) 
                    ? $e->detail->AdApiFaultDetail->Errors->AdApiError 
                    : array('AdApiError' => $e->detail->AdApiFaultDetail->Errors->AdApiError); 
            // If the AdApiError array is not null, the following are examples of error codes that may be found. 
            foreach ($errors as $error) 
                print "AdApiError\n"; 
                printf("Code: %d\nError Code: %s\nMessage: %s\n", $error->Code, $error->ErrorCode, $error->Message); 
                switch ($error->Code) 
                    case 0:    // InternalError 
                        break; 
                    case 105:  // InvalidCredentials 
                        break; 
                    default: 
                        print "Please see MSDN documentation for more details about the error code output above.\n"; 
                        break; 
        // Bulk service operations can throw ApiFaultDetail. 
        elseif (isset($e->detail->ApiFaultDetail)) 
            // Log this fault. 
            print "The operation failed with the following faults:\n"; 
            // If the BatchError array is not null, the following are examples of error codes that may be found. 
            if (!empty($e->detail->ApiFaultDetail->BatchErrors)) 
                $errors = is_array($e->detail->ApiFaultDetail->BatchErrors->BatchError) 
                        ? $e->detail->ApiFaultDetail->BatchErrors->BatchError 
                        : array('BatchError' => $e->detail->ApiFaultDetail->BatchErrors->BatchError); 
                foreach ($errors as $error) 
                    printf("BatchError at Index: %d\n", $error->Index); 
                    printf("Code: %d\nError Code: %s\nMessage: %s\n", $error->Code, $error->ErrorCode, $error->Message); 
                    switch ($error->Code) 
                        case 0:     // InternalError 
                            break; 
                        default: 
                            print "Please see MSDN documentation for more details about the error code output above.\n"; 
                            break; 
            // If the OperationError array is not null, the following are examples of error codes that may be found. 
            if (!empty($e->detail->ApiFaultDetail->OperationErrors)) 
                $errors = is_array($e->detail->ApiFaultDetail->OperationErrors->OperationError) 
                        ? $e->detail->ApiFaultDetail->OperationErrors->OperationError 
                        : array('OperationError' => $e->detail->ApiFaultDetail->OperationErrors->OperationError); 
                foreach ($errors as $error) 
                    print "OperationError\n"; 
                    printf("Code: %d\nError Code: %s\nMessage: %s\n", $error->Code, $error->ErrorCode, $error->Message); 
                    switch ($error->Code) 
                        case 0:     // InternalError 
                            break; 
                        case 106:   // UserIsNotAuthorized 
                            break; 
                        default: 
                            print "Please see MSDN documentation for more details about the error code output above.\n"; 
                            break; 
    catch (Exception $e) 
        if ($e->getPrevious()) 
            ; // Ignore fault exceptions that we already caught. 
        else 
            print $e->getCode()." ".$e->getMessage()."\n\n"; 
            print $e->getTraceAsString()."\n\n"; 
    // GetDownloadRequestId helper method calls the DownloadCampaignsByCampaignIds service operation  
    // to request the download identifier. 
    function GetDownloadRequestId($proxy, $campaigns, $dataScope, $downloadFileType,  
            $entities, $formatVersion, $lastSyncTimeInUTC, $performanceStatsDateRange) 
        // Set the request information. 
        $request = new DownloadCampaignsByCampaignIdsRequest(); 
        $request->Campaigns = $campaigns; 
        $request->DataScope = $dataScope; 
        $request->DownloadFileType = $downloadFileType; 
        $request->Entities = $entities; 
        $request->FormatVersion = $formatVersion; 
        $request->LastSyncTimeInUTC = $lastSyncTimeInUTC; 
        $request->PerformanceStatsDateRange = $performanceStatsDateRange; 
        return $proxy->GetService()->DownloadCampaignsByCampaignIds($request)->DownloadRequestId; 
    // GetDownloadRequestStatus helper method calls the GetDetailedBulkDownloadStatus service operation  
    // to get the download request status. 
    function GetDownloadRequestStatus($proxy, $requestId) 
        $request = new GetDetailedBulkDownloadStatusRequest(); 
        $request->RequestId = $requestId; 
        return $proxy->GetService()->GetDetailedBulkDownloadStatus($request)->RequestStatus; 
    // GetDownloadUrl helper method calls the GetDetailedBulkDownloadStatus service operation  
    // to get the download Url. 
    function GetDownloadUrl($proxy, $requestId) 
        $request = new GetDetailedBulkDownloadStatusRequest(); 
        $request->RequestId = $requestId; 
        return $proxy->GetService()->GetDetailedBulkDownloadStatus($request)->ResultFileUrl; 
    function DownloadFile($downloadUrl, $filePath) 
        if (!$reader = fopen($downloadUrl, 'rb')) 
            throw new Exception("Failed to open URL " . $downloadUrl . "."); 
        if (!$writer = fopen($filePath, 'wb')) 
            fclose($reader); 
            throw new Exception("Failed to create ZIP file " . $filePath . "."); 
        $bufferSize = 100 * 1024; 
        while (!feof($reader)) 
            if (false === ($buffer = fread($reader, $bufferSize))) 
                fclose($reader); 
                fclose($writer); 
                throw new Exception("Read operation from URL failed."); 
            if (fwrite($writer, $buffer) === false) 
                fclose($reader); 
                fclose($writer); 
                throw new Exception ("Write operation to ZIP file failed."); 
        fclose($reader); 
        fflush($writer); 
        fclose($writer); 
    // Decompresses a ZIP Archive and writes the contents to the specified file path. 
    function DecompressFile($fromZipArchive, $toExtractedFile) 
        $archive = new ZipArchive; 
        if ($archive->open($fromZipArchive) === TRUE) { 
            $archive->extractTo(dirname($toExtractedFile)); 
            $archive->close(); 
        else { 
            throw new Exception ("Decompress operation from ZIP file failed."); 
    // Compresses a bulk file to a ZIP Archive. 
    function CompressFile($fromExtractedFile, $toZipArchive) 
        $archive = new ZipArchive; 
        if ($archive->open($toZipArchive, ZipArchive::OVERWRITE) === TRUE) { 
            $archive->addFile($fromExtractedFile, basename($fromExtractedFile)); 
            $archive->close(); 
        else { 
            throw new Exception ("Compress operation to ZIP file failed."); 
    // Get the time stamp of the last download from the previous 
    // download file. The SyncTime node contains the time stamp. 
    function GetLastSyncTime($path) 
        $lastSyncTime = null; 
        if (is_file($path)) 
            $reader = @fopen($path, "r"); 
            try 
                $syncTimeColumn = 0; 
                // The first record contains column header information, for example "Type" and "Sync Time". 
                $record = fgets($reader); 
                if($record != null) 
                    $fields = explode(",", $record, 100); 
                    $column = 0; 
                    do 
                        $syncTimeColumn = ($fields[$column] == "Sync Time") ? $column : $syncTimeColumn; 
                    } while($syncTimeColumn == 0 && (++$column < count($fields))); 
                // Look for the Account record after any other metadata. 
                $isAccount = false; 
                do 
                    $record = fgets($reader); 
                    $fields = explode(",", $record, 100); 
                    if($fields[0] == "Account") 
                        date_default_timezone_set("UTC"); 
                        $date = (new DateTime($fields[$syncTimeColumn]))->format('Y-m-d\TH:i:s'); 
                        $lastSyncTime = ($fields[$syncTimeColumn] != "") ? $date : null; 
                        $isAccount = true; 
                } while(!$isAccount); 
                fclose($reader); 
                $reader = null; 
            catch (Exception $e) 
                if (isset($reader)) 
                    fclose($reader); 
                throw $e; 
        return $lastSyncTime; 
    ?>                   

    Hello.
    Here are a couple of suggestions to check first:
    UserName cannot be a Microsoft account (email format). If you have a Microsoft account, you must use OAuth. For more information, please see
    Managing User Authentication with OAuth.
    AccountId is not the same as Account Number that you would find on the Accounts & Billing page. The account details page should provide both Account Number and Account Id, so please be sure to use the AccountId. For an example of how to get the AccountId
    using the API, please see
    Search Customers by User in PHP.
    If you are still blocked, I suggest reaching out to support to verify your credentials.
    https://msdn.microsoft.com/en-US/library/bing-ads-error-handling-guide.aspx#engagesupport 
    I hope this helps!

Maybe you are looking for

  • How to run the same SSRS report multiple times, each time with a different parameter value?

    Hi, I have an SSRS report that produces a list of invoices for a single supplier (so supplier is a parameter specified at runtime). The report is based on a stored procedure in SQL. I would like to make things easier and instead of going through all

  • ITunes is telling me my iPad is synced to another library - how can this be?

    Hopefully someone can help with this! I just connected my iPad to my mac mini, opened iTunes, clicked "iPad", and then clicked "music".  I've been having issues with my playlists and was going to try to edit them this way.  iTunes wouldn't let me eve

  • Problem with Extended Desktop

    I have a 20" iMac Core Duo. I recently hooked up a 17" CRT as a dual monitor. It works great EXCEPT that when I go full screen in the second monitor with videos in iTunes, it blacks out my main monitor. I want to go full screen in the second monitor

  • -ve valuated stock value of material with zero stock value

    Hi, I am new to this forum. right now i am facing a severe problem in SAP. That is, we have a material in SAP which shows -ve Valuated Stock Value of material but its valuated stock quantity is zero in TC MC.9 while in MB5B both Stock and Value are Z

  • So slow sadenly

    nothing chant in my network router all is the same sadenly sync fikm from my imac to aptv it so solow befor 800mg took 5-6 min now all night long? why? how to resolve? pleas help me