AD users unable to login

Hi,
I have tried all documentations possible on this subject but cannot make the AD users login. I configured a new realm as per Paul Cannon's blog successfully. Configured AD and brought in required users and groups successfully. I have "DefaultAuthenticator" as the primary one. AD is second in line. "virtualize=true" option is set. I am able to login using WL id but not my AD id.
1. If I remove "virtualize=true" option, I am not able to login with either WLS userid or AD user id.
2. attribute settings are sAMAccountName. Proof that it is working correctly is because I can see the login ID's of AD users in my Users/groups.
3. I have not deleted the BISystemUser from WLS but matched passwords for both from EM.
4. system.user I changed password to match with AD's bissytemuser.
5. Global admin role added for bisystemuser
Operating System is AIX. Does that make a difference?
I also notice that I am not able to login to RPD in online mode.
I notice that when I try to add bissytemuser to any role( any AD user to any role), it gives me java exception lang errors.
I see this error in bi server log:
oracle.webservices.provider.ProviderException: javax.xml.ws.WebServiceException: BI Security Service Access Denied - credentials supplied in SOAP Message header failed authentication
I want to keep AD as the secondary authentication provider and still make it work. Could someone help me out please? Been struggling to make it work inspite of so much documentation and following all steps in those documentations.
Thanks,
Dan

I tried step by step exactly as per his blog. I recreated AD Authenticator just now and I can see all users/groups in console. I added the username.attr and user.login.attr to sAMAccountName and virtualize=true. Restarted entire stack. I am able to add AD groups to roles but not the users. I get java.lang.NullPointerException. I click Close and choose the MSAD bissytemuser to add to bissytem role, I cant. It keeps giving me this java error. I tried creating a new role and tried to add the user to it,same issue.
Is it mandatory to delete the BISystemUser from WL authenticator? the system.key has the same username and pwd as in AD.
I am on the verge of giving up Any more ideas/troubleshooting or should I raise an SR with Oracle?
This is what the entire error message say:
java.lang.NullPointerException
java.lang.NullPointerException
#{viewScope.emas_pagemodel_security_EditAppRole.searchPrincipal}: java.lang.NullPointerException
javax.faces.FacesException: #{viewScope.emas_pagemodel_security_EditAppRole.searchPrincipal}: java.lang.NullPointerException
  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
  at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:434)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
  at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
  at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
  at java.security.AccessController.doPrivileged(AccessController.java:310)
  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
  at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
  at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
  at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
  at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
  at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
  ... 67 more
Caused by: java.lang.NullPointerException
  at oracle.sysman.emas.model.security.DialogAdminBean$1.compare(DialogAdminBean.java:567)
  at java.util.Arrays.mergeSort(Arrays.java:2874)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.mergeSort(Arrays.java:2886)
  at java.util.Arrays.sort(Arrays.java:3251)
  at java.util.Arrays.sort(Arrays.java:3269)
  at java.util.Collections.sort(Collections.java:1966)
  at oracle.sysman.emas.model.security.DialogAdminBean.fetchPrincipals(DialogAdminBean.java:563)
  at oracle.sysman.emas.pagemodel.security.identity.EditAppRolePageModel.searchPrincipal(EditAppRolePageModel.java:496)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
  at java.lang.reflect.Method.invoke(Method.java:611)
  at com.sun.el.parser.AstValue.invoke(Unknown Source)
  at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
  at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
  ... 68 more

Similar Messages

  • Issue with cisco acs 4.2.Users unable to login aaa client but after restarting group policy able to login

    issue with cisco acs 4.2.Users unable to login aaa client but after restarting group policy able to login

    issue with cisco acs 4.2.Users unable to login aaa client but after restarting group policy able to login

  • Weblogic User Unable to Login to BIP

    Hello Guru's,
    I came into a shop shortly after that had installed and configured both OBIEE & BIP. Our version is 11.1.1.6.2.
    We can log into either OBIEE or BIP successfully with out own usernames, all of which have administrator rights. However, with the "weblogic" username, we can only log into OBIEE and not BIP. If we try to access BIP content from the OBIEE catalog it prompts for a login, and will not accept weblogic.
    HAs anyone run into this before an/or does anyone know what might be happening? I'm relatively new at the security side of things, so even if you can point me in the right direction of where to start troubleshooting that would be greatly appreciated.
    Thanks much!
    Adam

    Also don't duplicate your thread
    User unable to login even after password reset
    Close one of them please .

  • One user unable to login to OWA - error :" The user name or password that you entered is not valid. Try entering it again." exchange 2007 SP3

    Hello Guys,
    exchange 2007 SP3
    windows 2008 r2 
    we have one user who unable to login to owa with error -"The user name or password that you entered is not valid. Try entering it again."
    we checked mailbox feature in EMC and owa is enable 
    checked adsiedit - looks good
    we checked allow inheritance - checked
    we reset the password and try to login to owa from exchange server , no luck
    user can login to her computer and outlook without any issue
    we also moved her mailbox to another server 
    user facing the same issue from office and VPN 
    any suggestion ?
    Thanks
    Sandip
    sandip

    Hello Lynn
    thanks for the reply. but I already checked that and allow inheritance already checked .
    when user unable to access webmail with error "The user name or password that you entered is not valid"
    will it generate any event id on exchange server or domain controller ?
    in our case we have mailbox and CAS on different servers 
    any suggestion .
    Regards 
    Sandip
    sandip

  • Why are new directory users unable to login to iChat/jabberd?

    I have a couple of new users I've added to our directory recently. They are unable to connect to our internal jabber (iChat) server. Users that have connected previously are experiencing no difficulty.
    A quick overview of the layout of the system: two XServes, one is OD primary (aspen) the other is OD replica and iChat server (vail). I've modded some config files (long ago) to allow user IDs for jabber to be [email protected] instead of [email protected] It works quite nicely.
    Excerpt from the logs shows a failed login attempt followed by a successful login attempt. Successful logins are happening from Messages (beta), iChat under Snow Leopard, and Pidgin under windows. Failing logins are all from iChat under Snow Leopard. Please ask questions, I'm happy to add any other pertinent data!
    May  3 16:21:45 vail jabberd/c2s[99718]: [13] [::ffff:10.255.170.122, port=52584] connect
    May  3 16:21:47 vail jabberd/c2s[99718]: [13] [::ffff:10.255.170.122, port=52584] disconnect jid=unbound, packets: 2
    May  3 16:22:19 vail jabberd/c2s[99718]: [13] [::ffff:10.255.170.121, port=51608] connect
    May  3 16:22:19 vail jabberd/c2s[99718]: od_auth_check_service_membership: checking user "jwells" access for service "chat"
    May  3 16:22:19 vail jabberd/c2s[99718]: od_auth_check_service_membership: mbr_check_service_membership returned 2
    May  3 16:22:19 vail jabberd/c2s[99718]: od_auth_check_service_membership: no access restrictions found
    May  3 16:22:19 vail jabberd/c2s[99718]: [13] legacy authentication succeeded: host=ourcompany.office, username=jwells, resource=JWells’ Computer
    May  3 16:22:19 vail jabberd/c2s[99718]: [13] requesting session: jid=[email protected]/JWells’ Computer
    May  3 16:22:19 vail jabberd/sm[99716]: session started: jid=[email protected]/JWells’ Computer
    Looking for any and all assistance. Thanks much!!

    Tim, thank you for jumping in! I was afraid this question was going to languish.
    Snow Leopard is indeed listed twice. It is listed once as being successful as our existing users are able to login to the jabber service from there. It is also listed as being the sole operating system from which logins are failing as our new directory users are only using that platform.
    Only one machine is using Lion and that's the one using the Messages Beta and that's working just fine. I provided all of the client information, but I don't believe it's truly relevant. I'm pretty sure that the issue is on the server side. ...I just have NO idea what the problem is!

  • AD provisioned user unable to login in Domain

    Hi Friends,
    I have created a user in OIM 11g and provisioned to AD.
    When I try to login to AD domain. It is not allowing to login.
    Dose the user need have any permissions for it ?
    plz help me in the regard.
    Thanks
    Sri

    First check in you AD if the user account was really created or not and secondly can you please post the error you are getting while trying to login.
    SB

  • Creative Cloud User - Unable to login to Story Plus and access my stuff.

    I was in story plus all day yesterday. My account is up to date. Now I am redirected to upon login to Story Free, even when I go to the adobe story plus page and click the login button. Help!

    Hi,
    please clear your browser cache and try to login again.
    If this does not work, please send a mail to AdobeStory-Support at adobe dot com mentioning the id you are using to login in to Story. We will check the details from the backend and try to solve the issue.
    Thanks
    Aurobinda

  • I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    Try clearing your cache, [https://support.mozilla.org/en-US/kb/How to clear the cache Instructions here]. Then, try going to [https://accounts.google.com Google Accounts]. If there is currently an account singed in, sign out, then back in. After that, try going to Google Adwords.

  • User having all authentication but unable to login in planning why  ?

    user having all authentication but unable to login why in planning ?

    You might need to give some more details.
    For example, what kind of provisioning in shared services, under what groups if any, what kind of dimension level access in planning etc?

  • Can not log into server computer with any accounts - "You are unable to login to the user account "abcdefg" at this time. Logging in to the account failed because an error occurred."

    I have a Mac mini running the latest version of OS X and Server. Been running fine and flawlessly. However, I had a strange problem with the iCloud preferences panel crashing when I tried to access it, so I rebooted. Now I can not log into the system with any accounts. My master admin account (along with all the others) gives me the error:
    You are unable to login to the user account "abcdefg" at this time. Logging in to the account failed because an error occurred."
    I am able to see the server from other macs and I can log into it using the same account, but it only shows me a few of the shared folders I have access to but NOT to my main directories.
    Rebooting into Command-R and doing a disk utility, I try and repair permission on that drive and get a bunch of errors like:
    ACL found but not expected on Users
    Repaired "Users"
    ACL found but not expected on Users/.localized
    Repaired "Users/.localized"
    ACL found but not expected on Users/Shared
    Repaired "Users/shared"
    ACL found but not expected on Users/Shared/.localized
    Repaired "Users/Shared/.localized"
    Permissions repair complete.
    But rebooting is no joy...same problem. Any idea what is going on or how to repair it? Should I do a time machine restore? Complete new OS X install? Any idea what is causing this or how to salvage it?

    Got everything to re-install and it worked fine...for a few hours. Then I came in to find ALL of my network users deleted. Just GONE. Then found out the Open Directory was trashed and was unable to open, recover or restore from a backup. Looks like I may have a bad drive here.
    I installed a new drive in the system, re-installed and so far (for a couple of hours anyway) the system seems to be working and stable.

  • Unable to login any user id first time in the Adobe content viewer (R25)

    Hi,
    I am using R25 Adobe content viewer. The problem is that I am unable to login any user id first time. when I do 2nd time with same id then it do successfully. Please suggest.
    DC Pub

    This is a known issue with the v25 Adobe Content Viewer. It is fixed with the v26 version, which is currently awaiting approval from Apple. If you have a Pro or Enterprise subscription to DPS, you can build a custom Adobe Content Viewer.

  • Unable to login to caralog manager online with adminstrator user

    Hi Gurus,
    I am unable to login to catalog manager online with administrator user. I get error as
    'access denied for user to path /.'
    I think this is because of catalog migration from dev to test.
    What do i need to do so that i could login to catalog manager online with administrator?
    Please advice
    Thanks

    Hi,
    When the catalog is moved from Dev to Test/prod permissions are not copied. The users are part of the system folder (i.e Catalog Manager > Users > Properties > Owner Account = System Account), which is why Catalog Manager does not transfer the permissions.
    I guess that is the reason you were able to run the reports from dev and not from test/prod. To have them work you might need to refresh GUID's check the Oracle note [ID 1467256.1].
    1. Stop the Presentation Server.
    2. Backup the instanceconfig.xml file at [middleware_home]/instances/instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml
    Under the 'Catalog' section, add the 'Recover' tag. For Example:
    <Catalog>
    <UpgradeAndExit>false</UpgradeAndExit>
    <UpdateAccountGUIDs>Recover</UpdateAccountGUIDs>
    </Catalog>
    4. Start the Presentation Server. It will perform a recovery and then after some time shutdown.
    5. Remove the tag.
    6. Start the Presentation Server again.
    Let me know if this helped.
    Regards,
    Jay
    Edited by: Voltaire on Nov 19, 2012 11:59 AM

  • Unable to login to Java Desktop Environment with new user

    Hi
    I have created a new user in my Solaris10 x86 using the command
    #useradd nama
    I added the passwd to the user, using passwd.But when i am trying to login through GUI(Java Desktop Environment) i am unable to login.
    After giving username and password , again its showing the login screen itself.
    But i am able to login with root permissions.
    Could anyone help me .
    Thanks inadvance.

    use this workaround, as root edit /etc/auto_home and /etc/auto_master and comment out all the configuration and reboot the machine. then use useradd utility to add your normal users.
    # useradd -d /export/home/user1 -s /usr/bin/bash -m user1
    HTH

  • Unable to login @ login window with Active Directory User

    I successfully bound my test machine to Active Directory and can search using dscl and id. I can also su to my active directory user account an authenticate perfectly. All search bases are correct and everything else looks fine.
    When I attempt to login from the login window as an AD user, the window shakes. Clicking under Mac OS X shows that "Network Accounts Available". Looks like the CLI tool "dirt" is now gone as well, although insecure it would possibly show something here.
    Anyone else having issues after binding to AD? I bound using the Directory Utility gui... I have not tried using my leopard bind script yet.
    Thanks,
    Ken

    I have pretty well the same problem. The machine was already bound to AD prior to upgrade. After could not login on with my account (jball). Can log on with other accounts from the same domain (we only have one AD domain). Can also su to jball in a terminal session. Can't access network resources with jball when I try to connect to a windows server through the finder, instantly comes up with bad username or password, doesn't even think about it.
    I have removed any copies of the home folder under either /Users or /Domain as I have had problems with that before. Have repaired permissions and unbind and bind the machine to AD. Have been at this all day now and no closer. Get these error messages in console:
    31/08/09 4:49:27 PM SecurityAgent[666] Could not get the user record for 'jball@domainname' from Directory Services
    31/08/09 4:49:27 PM SecurityAgent[666] User info context values set for jball@domainname
    31/08/09 4:49:27 PM SecurityAgent[666] unknown-user (jball@domainname) login attempt PASSED for auditing

  • Unable to login in to Mac App Store using valid account.

    I recently inherited a spare MacBook Air from my wife (who got a new one). I deleted her user account, and set up a new admin user account for me. The machine is running 10.7.5.
    Now, I am absolutely unable to login to the App Store. I am using my valid Apple ID -- for example, the same Apple ID that I used to gain access to this very forum. System Preferences accepts my ID. iTunes accepts my ID. BUT the App Store will aboslutely NOT respond. It will not load. I get the red "connection failed" alert, and then after several tries it doesn't respond at all.
    It doesn't give any option to switch users -- perhaps once the original owner has used the App Store, the computer will never again allow anyone else to use it? It doesn't say that there is another user logged in. There appears to be no way of deleting and reinastalling the App Store. There is no cache file I can find to be cleared. There is no preference option. There is no information. There appears to be no way of fixing this at all, short of wiping the hard drive and reinstalling the operating system. Is that what I have to do? WHY IS THIS SO HORRIBLY DESIGNED? And why is there no support short of the forum? I hate this about Apple (despite being a long-time Apple evangelist and OSX devotee).
    Thanks.

    The first thing you should do after acquiring a second-hand computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. I suggest you install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the gray installation discs that came with it. If you don't have the discs, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, it should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.

Maybe you are looking for