[BEGINNER] Checking for username and password in OID

Hi all !
I have the requirement to move USER/PASSWORD credentials from DB into OID. I have
created the Organization structure and users now I need to validate user/password.
I'd like to authenticate programmatically with JNDI Java Api so that the code is portable across different AS.
The problem is that, when I issue a search against uid and password:
Attributes matchAttrs = new BasicAttributes(true);
matchAttrs.put(new BasicAttribute("uid", "[email protected]"));
matchAttrs.put(new BasicAttribute("userpassword", "fmarchioni1"));
NamingEnumeration results = ldapContext.search("dc=NDC,dc=Acme,dc=it",matchAttrs);
I get as result:
javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Function not implemented
I suppose it's not allowed to search the userpassword attribute, anyway how can I check the user credentials ?
Thanks
Francesco                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

The simple way to solve the problem is just to bind to the LDAP server with the login and the password that you want to check.
The more complex is to see if you can get the password hash out of OID, hash the test password using the same algorithm and then compare the values.
Best regards
/Martin

Similar Messages

  • Micrsoft Outlook somtimes prompting for username and password

    hello All ,
     I Have Exchange 2010 sp3 installed two mailbox servers & two HUB & CAS Servers  and Outlook sometimes  prompting for username and password .
    how can fix it .
    Thank you

    Hi,
    Please check the following points:
    1. Does the issue happen to your external users or internal users?
    2. For all users or some specific users?
    If the issue happens to internal users, please configure the authentication in Outlook Security tab with Negotiate Authentication to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Network printers prompting for username and password

    With the more recent OS upgrades I can now see my printers on my home network. Very cool.  When I select one to print, I am prompted for a username and password. I have tried my network keys with no luck and cannot set a password on my printers. Is this unusual and if not, what should I be using?

    You can try to take a fiddler trace in both scenarios and then search for the differences. This issue seems to be related with your network configuration that with the product itself.
    In fiddler you can identify what verb is requesting for credentials and from there you can go further with troubleshooting.
    You can check also this article
    http://blogs.technet.com/b/office_integration__sharepoint/archive/2014/02/24/users-are-prompted-for-username-and-password-when-opening-an-office-file-from-a-web-server.aspx
    MCITP|MCTS SharePoint| SharePoint Performance blog

  • Prompting for username and password for opening

    Hi,
      The domain of my organisation is xyz.com. So when try to access any office doc from the office network it opens the office docs without any prompt in office client. But whenever try to access them using VPN or citrix it asks for the username and password.
    Then if I give credentials or cancel it irrespective of that it opens the doc for me.
    The sites are in trusted zone. It is happening for 2010 and 2013 both. But for pdf it is not prompting.
    Why it is asking for credentials and how to mitigate this so that it opens directly from everywhere.

    You can try to take a fiddler trace in both scenarios and then search for the differences. This issue seems to be related with your network configuration that with the product itself.
    In fiddler you can identify what verb is requesting for credentials and from there you can go further with troubleshooting.
    You can check also this article
    http://blogs.technet.com/b/office_integration__sharepoint/archive/2014/02/24/users-are-prompted-for-username-and-password-when-opening-an-office-file-from-a-web-server.aspx
    MCITP|MCTS SharePoint| SharePoint Performance blog

  • Outlook 2013 on Windows 8.1 keeps prompting for username and password.

    Hi,
    I have a HP Pavillion TouchSmart laptop with MS Windows 8.1 OS. I had installed MS Outlook 2013 Standard. This laptop is joined to the domain like many of my users, however, it keeps prompting for username and password. The emails are still able to send
    and receive without any problem.
    I have tried to check the connectivity, both cables and wireless are well connected.
    I have tried to reinstall the Outlook 2013, but it still occurs.
    Attempted to recreate profile but it still occurs.
    For the configuration:
    I have selected negotiate authentication, and have unchecked the box that states
    "Always prompt for login credentials"
    Please advise.
    Thank you.

    Hi,
    We can also follow this forum FAQ to troubleshoot this problem:
    Why does Outlook keep prompting for password
    http://social.technet.microsoft.com/Forums/en-US/bcd2d9c2-1a1b-4446-bf32-69fee8cdf11b/why-does-outlook-keep-prompting-for-password?forum=outlook
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Why it is keep asking for Username and Password but i didn't use any username and password with my database.

    Why it is keep asking for Username and Password but i didn't use any username and password with my database. Please help me i m very frustrated right now please help anybody. I m new in this.,

    Hi,
    Please check below threads:
    Crystal Report Layout asking for Login Info
    SAP B1 ask for credentials to print or to preview Crystal Reports report

  • Sharepoint2013 Stop asking for UserName and Password

    Hi,
    I have Installed New sharePoint2013 Server , I face Issue that Sharepoint Site keep asking for UserName and Password aeach Time.
    I set as  windows authentication in both IIS and Central Administration ,
    and I configure The IE and I set Automatic Login with Current Username And Password and I put it in Trusted site  and nothing  change.
    I also have sharepoint 2010 server and when I configure it like above it
    stopped ask me for UserName and Password ,
    Can any one help me what maybe  the problem in SharePoint server2013.
    thank you,,,

    Hi,
    Try following these steps:
    Adding the site to Local Intranet Zone: 
    Navigate to Tools > Internet Options
    Under Security tab, navigate to Local Intranet > Sites > Advanced. Enter the URL of your SharePoint site and click Add. Uncheck theRequire server
    verification (https:) for all sites in this zone box and click Close
    Adding the entry to the Credentials Manager: 
    Go to Start > Run and type in control keymgr.dll to open the Windows key manager.
    Alternatevily: navigate to Contorl Panel > User Accounts > Manager Windows Credentials
    Select Add a generic credential
    Add your SharePoint site URL, login and password to the corresponding fields. If this entry already exists, edit it to have your login credentials. 
    Reboot the computer.
    If you are missing the Add button, you may want to modify Windows Registry to be able to save the password.
    Note: for editing Windows Registry, administrator rights are required. Editing Windows Registry is not safe and you will perform it at your own risk.
    In Windows, go to Start > Run and enter regedit.
    Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\.
    Find the DisableDomainCreds entry. A value of 1 (enabled) will prevent you from saving new credentials. 
    Change the value to 0 and reboot. Now you should have the Add button available. Note that 0 is the default value.
    Also check the LmCompatibilityLevel entry. It should be set to 3, which is the default value. If you have another value, change it to 3. If it does not
    work with 3, then also try it with 2.
    Reboot the computer to apply changes.
    Ref: http://hosting.intermedia.net/support/kb/?id=1668
    If this helped you resolve your issue, please mark it Answered

  • Why asking for username and password once entered

    Hi!
    While configuring a new account in Outlook 2010 from Internet it asks for username and password one more time even after entering it once at the beginning of the account setup.
    Can anybody provide some details. Can't the automatic setup take the entered credentials once for all?
    Exchange 2010 and 2013
    Thanks.

    Hi,
    Based on my experience, the credential issue can be caused by the connectivity issue.
    Thus, let’s check if Outlook Anywhere connection is well by using ExRCA:
    https://testconnectivity.microsoft.com/
    Thanks,
    Angela Shi
    TechNet Community Support

  • Ask for Username and Password while Opening an Applet

    Can we code such a way that , While we open an Applet , It should ask for User and password and upon sucessful validation , the Main applet must be loaded !
    Any Suggestions Please !
    Thanks .....

    public class FirstApplet extends Applet {
         private boolean authentified = false;
         private SecondApplet applet = null;
         public void init() {
              System.out.println("FirstApplet: init()");
              authentified=authentificate();
         public void start() {
              System.out.println("FirstApplet: start() "+authentified);
              if (authentified==true) {
                   applet=new SecondApplet();
                   applet.init();
                   applet.start();
         public void stop() {
              System.out.println("FirstApplet: stop()");
              if (applet!=null) applet.stop();
         public void destroy() {
              System.out.println("FirstApplet: destroy()");
              if (applet!=null) applet.destroy();
         private boolean authentificate() {
              System.out.println("FirstApplet: authentificate()");
              // ask the user for username and password
              // check the password, if it's ok, return true
              // if it's not okay, return false
              // how to do a login window, see
              // http://www.codeguru.com/java/articles/510.shtml
              return true;
    }

  • Outlook asking for username and password, but only for some users

    Hello, I'm
    in an Exchange Server 2013 client
    environment, two CAS servers
    and two Mailbox.
    Some users are having trouble in Outlook 2007
    and 2012, which is directly
    requesting the user name and password, not all,
    just some.
    The Active Directory is ok,
    DNS and also own Exchange
    servers apparently do not see errors.
    Has anyone here ever experienced this?
    How can I solve this problem?
    As this happens only to some users
    and the vast majority have no problems, so
    difficult to find the cause.
    Thank you!
    Ivanildo Teixeira Galvão

    Hi Ivanildo,
    From your description, only some users have an issue that Outlook prompts for username and password. In your case, I recommend you compare the normal and problematic Outlook settings. Here is the Outlook settings in my environment for your reference:
    1. "Always prompt for logon credentials" isn't checked.
    2. Logon network security using Negotiate Authentication.
    3. "Connect to Microsoft Exchange using HTTP" is checked.
    4. Use the NTLM Authentication when connecting to my proxy server for Exchange.
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Problem with iWeb asking for username and password to access my public site

    Today for some reason anyone trying to access my site is being asked for username and password. I have made no changes that would require a password. My site has always been public.

    I am having the same problems. My site is public, I checked the settings on the public folder on MobileMe to ensure that it was public and did not require password protection either. But for some odd reason, even though I didn't change anything, my site's pages seem to require a user name and password to get into them. If one continues to click cancel, the page continues to load.
    This does not happen every single time, but it happens more often than not. I have tried this with my iMac, Macbook, as well as my iPod Touch, and I get this on all machines. My brother has tried logging in from another location using his Macbook Pro, and he gets the password prompt as well.
    I tried turning on password protection to the site and uploading the changes, then disabling password protection and reupping the changes once again. I've tried uploading entire site, instead of just changes, but the problem continues to persist. I definitely need this issue solved since this site is important to me.
    The site url is: http://www.globalwinetour.com
    Does anyone have any suggestions to rectify this, or does anyone have any idea what is causing it? Am I missing something here? Am I doing something wrong? Please help me out!
    Many thanks in advance!

  • Lync keeps prompting for username and password.

    Hi All,
    Lync 2013 prompt for username and password.  The request for username and password happens intermittently.
    Appreciate any help.
    Thanks
    denciod

    This kb is helpful to troubleshoot this issue:
    https://support.microsoft.com/en-us/kb/2298541
    There are solutions for Lync users and Lync administrators, choose the method depending on your role.
    -Jeff

  • Word 2010 prompts for username and password when opening a document on trusted website

    Hi Guys,
    We have a website (not sure if the site is a sharepoint site) on our trusted domain that asked for username and password when trying to access it. I added the site to our trusted sites zone and this resolved the issue however when I try to open word documents
    I get prompted for usernames and password again if I cancel the credentials box the document opens with no issues. 
    Below is some of the steps i have taken
    - Tried opening other non office documents (e.g. PDF, JPEG) and they open with no issues
    - Tried to opening the word documents with a system that only had word pad install and not Office 2010 and the documents open with no issues so it looks like it's an office 2010 problem 
    Can you please advise how I can resolve this issue and if this is a client issue or an issue on the web server thanks

    Hi,
    This issue is caused by the Office suit itself. When Internet Explorer opens an Office document, the appropriate Office application is started with the path of the document. The Office application then tries to access the document directly from
    the server. This differs from other browsers and other file types. Most browsers download the file and call the application to open the file from the local cache. However, when this occurs, if the opened file is changed and saved,
    the changes are only made to the local copy and not to the server copy.
    To establish the richest experience possible, the first thing that the Office application does is communicate with the server to determine the server type and what web authoring protocol is available. The application does this by making
    an OPTIONS request directly to the server.
    As a new process accessing the server, the Office application is required to renegotiate authentication. This method is more secure than a method in which the new process uses an existing authentication that was established by the browser. 
    Please try the following methods:
    An alternative with full functionality but with a calculated risk
    Client approaches that can reduce the impact
    Alternative configurations when the web server does not support DAV or reduced functionality is acceptable
    For more detail information, please refer to the following link:
    http://support.microsoft.com/kb/2019105/en-us
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Users prompted for username and password after sharing removed from servers

    Hello Community
        On Sharepoint 2010 Server using the UI in a 2 server farm with an intranet running on it and everything functions as it should.  However it was noticed that from a users computer when in "Windows Explorer" if "Network"
    is clicked the 2 servers are visible.
        The problem is that when the server are clicked on in Windows Explorer the files and folders on the hard drive of the servers are visible too.
        Subsequently I logged onto the server and when into "Properties' - "Sharing" and
    unchecked the checkbox to "Share this folder".
        That solved the problem of the users being able to see and access the files
    and folders on servers hard drives but now when the users log onto the intranet
    they are prompted for a user name and password and even when they provide the user
    name and password and the page is returned the prompt appears on the screen again(then they cancel out).
        What can be done about the user being prompted for username and password without sharing the drives on the servers ?
        Thank you
        Shabeaut

    What exactly was shared out from the SharePoint server's file system? There are certain things that are shared by default.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • RE1000 asks for username and password

    I have the RE1000 installed as extender for my WRT110 router. I was told by Linksys live chat tech that this would be suitable for our home network. When in the family room or on patio (where I have weak WiFi usually), the Extender shows on my iPad in the list of available WIFI and has excellent icon (the router usually has one or two bars and goes in and out).
    When I try to access the Extender on my iPad, it asks for username and password but will not take it. Should I run setup again or what? 
    Solved!
    Go to Solution.

    in setting up the range extender, it will give you the option to connect to your network. so essentially, you will not have to define/ specify the settings manually. the purpose of the range extender is to extend the signal of the main network, not create a separate network of its own.
    i suggest that you RESET the range extender and run the setup wizard again. make sure to connect the device to your network. once the devices have synced up, you will be able to fully utilize this device.

Maybe you are looking for

  • Toshiba EXCITE Pro - WIFI connection. Authentication failed after update

    Hello. Just received this Tablet. Everything seemed ok while updating to the latest version (did that first to solve the heat problems). After the last update *i lost my WIfi connection. Authentication failed* (didnt change something - was connecting

  • Cannot install Windows 7 "recovery media" on new Portege R600

    I received a new R600 which I had wanted to buy with Windows 7 pre-installed, but the only option is to buy it with XP installed and "Windows 7 recovery media" (2 CDs) comes in the box, with no instructions. I started the computer, and did nothing bu

  • Iweb and web galleries?

    i need to use a password protected program to host online albums for clients through my website. 1) i have no idea how to do this and 2) where to get it... my website is hosted through godaddy.com but is created through iweb. - i have been told simpl

  • Business Graphics in Adobe Form

    Hi Gurus, One of our client has requirement of showing business graphics like Graphs, pie charts on the Adobe form. Is it possible in Adobe forms to show these graphics. If yes, then can anyone please send me some links, documents. With Regards, Amit

  • Ipod and apps from Itunes

    I am not sure if my Ipod is a forth or fifth generation. I bought and apps from the Itunes store noticed it didn't show up on my Ipod and then noticed that the app said for Itouch and Iphone, do they not have apps for plain Ipods? Good thing the app