PAM-KRB5: account:  unable to get host based service name for realm

I want a custom service to authenticate via PAM with Microsoft Active Directory Services on Windows 2003. kinit appears to work:
Myserver% klist
Ticket cache: /tmp/krb5cc_200
Default principal: [email protected]
Valid starting Expires Service principal
Tue 01 Aug 2006 10:42:23 AM CDT Tue 01 Aug 2006 08:42:23 PM CDT krbtgt/[email protected]
renew until Tue 08 Aug 2006 10:42:23 AM CDT
Running a sample PAM consumer using 'winsamp' as its service name complains that Kerberos doesn't know the user. syslog reports: PAM-KRB5: account: unable to get host based service name for realm 'EXAMPLE.COM'.
I'm stuggling to get any additional logging out of either PAM or Kerberos. Any advice appreciated.
/etc/pam.conf:
winsamp auth required pam_krb5.so.1 debug
winsamp password required pam_krb5.so.1 debug
winsamp account required pam_krb5.so.1 debug
winsamp session required pam_krb5.so.1 debug
/etc/krb5/krb5.conf:
[libdefaults]
default_realm = EXAMPLE.COM
default_tkt_enctypes = des-cbc-md5 ; or des-cbc-crc
default_tgs_enctypes = des-cbc-md5 ; or des-cbc-crc
[realms]
EXAMPLE.COM = {
kdc = mykdc.example.com:88
admin_server = mykdc.example.com
default_domain = EXAMPLE.COM
[domain_realm]
.example.com = EXAMPLE.COM
[logging]
default = FILE:/var/krb5/kdc.log
kdc = FILE:/var/krb5/kdc.log
kdc_rotate = {
# How often to rotate kdc.log. Logs will get rotated no more
# often than the period, and less often if the KDC is not used
# frequently.
period = 1d
# how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)
versions = 10
[appdefaults]
kinit = {
renewable = true
forwardable= true
PAM sample application synopsis:
pam_start("winsamp", "someuser", &conv, &pamh);
err = pam_authenticate(pamh, 0);
if (err == PAM_USER_UNKNOWN)
printf("don't know that user\n"); // <-- we always arrive here
logout();
}

Part of the problem was that the Sun server's domain was not an exact match for the ADS domain. One was XXXX.EXAMPLE.COM and the other was just EXAMPLE.COM. Adding the equiv. domains in krb5.conf improved that situation.
The sample PAM application still doesn't behave the way I want. When pam.conf is configured to authenticate against /etc/passwd, it works. Not when authenticating against ADS alone. I've come to the conclusion that PAM is for authenticating ONLY access to Solaris accounts.
My application does not need a Solaris account. Am I using the wrong authentication API?

Similar Messages

  • Unable to get the file system information for: \\****servername\E$\; error = 64 Unable to distribute content to DP

    One of our DPs has stopped loading content. 
    I've research for quite a bit and cannot find a clear cut reason to this.  This server only has a DP role, I verified sharing permissions, all looked good. This DP has been running just fine for the last year or so and all sudden it will no longer load
    packages.  The disk drive is still present I can still reach the hidden share \\servername.com\E$
    Verified that the SMSSIG$ folder is there and the last entry is from 4/23/2015 
    SCCM 2012 R2 
    OS 2008 R2 Standard
    Any help is greatly appreciated!
    Here's a snipit from the distmgr.log
    Start updating the package on server ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\...
    Attempting to add or update a package on a distribution point.
    Will wait for 1 threads to end.
    Thread Handle = 0000000000001E48
    STATMSG: ID=2342 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=***.com SITE=1AB PID=2472 TID=8252 GMTDATE=Thu Apr 30 19:12:01.972 2015 ISTR0="SYSMGMT Source" ISTR1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="CAS00087" AID1=404 AVAL1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    SMS_DISTRIBUTION_MANAGER 4/30/2015 2:12:01 PM
    8252 (0x203C)
    The current user context will be used for connecting to ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\.
    Successfully made a network connection to \\*****.com\ADMIN$.
    Ignoring drive \\*****.com\C$\.  File \\*****.com\C$\NO_SMS_ON_DRIVE.SMS exists.
    Unable to get the file system information for: \\*****.com\E$\; error = 64.
    Failed to find a valid drive on the distribution point ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\
    Cannot find or create the signature share.
    STATMSG: ID=2324 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=sccmprdpr1sec2.mmm.com SITE=1AB PID=2472 TID=8252 GMTDATE=Thu Apr 30 19:12:55.206 2015 ISTR0="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    ISTR1="CAS00087" ISTR2="" ISTR3="30" ISTR4="94" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="CAS00087" AID1=404 AVAL1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    Error occurred. Performing error cleanup prior to returning.
    Cancelling network connection to \\*****.com\ADMIN$.

    Error 64 is being returned which is simply "the network name is no longer available".
    There can be a number of reasons for this from SMB compatibility issues (2003 servers wont support SMB2), to the expected and actual computer name of the boxes don't match (tries to authenticate with server.tld.com when the actual name is srv-01.tld.com and
    you just put a C-name in). I'd start from the top:  Try opening said share from the Primary Site server as that's the box doing the work.  Verify the IP and computer name is legit and that no one has played ACL games between the two systems (remember
    RPC only initiates/listens on port 135 but established connections are up in the dynamic port range).
    At the end of the day it's an issues "underneath" SCCM, and not an SCCM problem specifically. 

  • How can I create a Face Time account.  I have an Apple ID and password.  When I Google how to create an account all I get is what I need for the system

    I have a 13" MacPro.  How can I create a Face Time account.  I have an Apple ID and password.  When I Google how to create an account all I get is what I need for the system

    You don't need to create an account.   Your use your Apple ID to log into Facetime.
    If you haven't already you will need to download the Facetime App from the Mac App Store.
    https://itunes.apple.com/us/app/facetime/id414307850?mt=12&ls=1
    FaceTime for Mac: Troubleshooting FaceTime - Apple Support

  • I upgraded my cloud storage from 2G to 120G and today it went back to 2G and I cannot save my work. Anyone experience this? Unable to get any customer service.

    I upgraded my cloud storage from 2G to 120G and today it went back to 2G and I cannot save my work. Anyone experience this? Unable to get any customer service.

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • JRockit_160_05_R27.6.2-20 can not get the correct os name for windows 2008

    JRockit_160_05_R27.6.2-20 can not get the correct os name for Windows Server 2008 SP1 using System.getProperty("os.name").
    System.getProperty("os.name") will return Windows Vista instead of Windows Server 2008 when running on Windows Server 2008 SP1. Is it a bug of this jdk?
    I tested it on Sun JDK 1.6. It returns the correct name Windows Server 2008.
    Any suggestion will be welcomed. Thanks in advanced!
    Edited by: user4516182 on May 13, 2010 12:59 AM

    Staffan, thanks for your update.
    Do we have a workaround for it or fix it in new release?

  • Hello! How I can cancel my iCloud account? I would like to use alias but I have create the second account by mistake. Now, user's name for one alias is unavailable!  Thank you! LG

    Hello! How I can cancel my iCloud account? I would like to use alias but I have create the second account by mistake.
    Now, user's name for one alias is unavailable!
    Thank you! LG

    To the best of my knowledge you have now unfortunately blocked yourself: you can't cancel an iCloud account and as you've got the address there you can't add it as an alias, and I don't know of any workaround for that.

  • Phone unable to get Host Routing Tables

    Hey,
    I've been on with Rogers tech support for sometime today.
    My originating issue was wireless wouldn't work and everytime i tried to scan for networks the bb would freeze and auto restart. I did a backup and wiped the device and wireless was working yet again.
    But now i'm unable to get data services at all, apparently with rogers you're supposed to get EDGE and not edge. You're also supposed to have 8 entries in the Host Routing Table and i have none.
    Rogers has wiped the handheld, reloaded all applications to barebones and still the issue persists. 
    Whenever i try to do a full restore it errors out at reloading WLAN Profiles and options.
    Before all this started and it was wiped trying to view WIFI Options an error popped up "Uncaught Exception: padded byte out of range" now i remembered that from memory so the Uncaught part maybe wrong.
    Really don't want to drop another $500 on a phone literally 2 years after i spent $400 for this thing.
    Thanks
    Ian

    I should also add that i tried my dads sim card in my phone and same issue.
    Radio Data Activation: Yes
    Signal Level: -86dBm
    Radio Access: EDGE
    Network: Rogers Wireless
    IP Address: 10.172.171.13
    ICMP Ping Echo: Yes
    BlackBerry Registration: No
    Connected to BlackBerry: No
    BlackBerry PIN-PIN: No
    Server Name: GBISXNAC01S08
    Email Address: <email address #1>
    Connected to <email address #1>: No
    Server Name: GBISXNAC01S08
    Email address: <email address #2>
    Connected to <email address #2>: No
    PIN: 24a5d7dd
    MSISDN: <my phone number>
    Device Type: BlackBerry 8900
    Application Version: v4.6.1.94
    Platform Version: 4.2.0.69
    Thanks
    Ian

  • UNABLE TO GET SALARY BASED ON HOURS ( POSITVE TIME MANAGMENT )

    Hi Vivek,
                    Your document was great.
           I am implementing positive time management and at present i am entering the clock in and clock-out in IT-2011 manually for testing and when i run PT60 using TM00 schema it was not showing any errors but data in 'ZL' it was showing as no entries.
    And to cross check i have executed  'PC00_M40_CALC' but the payroll was caluclated based on no. of days( negative tm).
    I am new to TM concept please help me out.
    Thanks,
    Saikrishna.

    Hi,
    Here are some answers/comments to your question above.
    1. You should not make any changes in schema TM00 (Standard SAP Schema) - copy this to a custom schema (ZM00) in transaction PE01 and add logic/make changes in this custom schema.
    2. Entries will not automatically be created in the ZL table just because you have IT2011 (Table TEVEN) entries. ZL entries are created either through PCR logic, or via table T510S (Wage type generation) entries. These are both very complex Time Management concepts that require a lot of studying and understanding in order to take raw data and generate the appropriate wage types at the appropriate time. This is important because based upon raw clock in and clock out's alone the system does not know if it should generate regular hours, overtime, double time, holiday pay etc - you have to do the configuration to tell the system what to generate and when to generate it.
    3. As far as your issue within the payroll driver (Basic Salary being created on the basis of number of date) - I believe this could be based upon either wage type setup or your Pay Scale configuration and this associate's Infotype 8. You probably have him setup like a salaried associate. Check the following area in the IMG Personnel Management --> Personnel Administration --> Payroll Data --> Basic Pay
    Good luck on your journey to learning SAP Time Management/SAP Payroll.
    Thanks,
    Imran

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • I changed my e-mail (due to a move) and now I'm unable to connect my ipod. I get the "wrong user name" for all three of the family ipods.

    I've checked the Apple site as well as performed a Google search to no avail. Anyone out there able to help?

    Hello,
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
    You may have multiple entries.
    Open Keychain Access in Utilities, enter the part after the @ sign in the search bar, hit enter

  • Unable to connect using Net service name

    I'm running 10.2.0.3 on a RHEL 4 box. I am able to connect to Oracle locally using :
    sqlplus username
    however, if i try to login using:
    sqlplus username@SID, i get this error message:
    ================================
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    ==================================
    My sqlnet.ora file looks like this:
    =======================
    SQLNET.AUTHENTICATION_SERVICES=(NONE)
    NAMES.DEFAULT_DOMAIN = world
    NAMES.DIRECTORY_PATH=(TNSNAMES)
    =============================
    and my tnsnames.ora file looks like this:
    ===========================
    testsid.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = testsid)
    ==================================
    i ran TNSPING on the box, and that returns a success code, so I'm not really sure what I'm missing here. Any help would be greatly appreciated.

    Peculiar.
    When you show yourself logging on to an instance, wouldn't it be a good idea to then demonstrate that you've actually connected to the right instance? Instead, you do a mere count from a table. Why not, instead, do a select instance_name, status from v$instance? Then we would indeed know that an instance called TESTSID is running and that its status is OPEN. Without that, your statement that "this is how I know the database is up" is really just a faith-based proposition. The statement you show simply tells us AN instance is up: it doesn't tell us WHICH one, though (and your lsnrctl status feedback makes it clear more than one is running).
    Your output from tnsping is largely irrelevant, too. TNSPING tells you whether your client can talk to a listener, and that's it. It says nothing at all about whether the instance you're trying to reach is up, down or otherwise engaged.
    A better command to diagnose these sorts of things, incidentally, is lsnrctl services, because it's a service you are ultimately trying to connect to, so seeing what services your listener is aware of is more useful than knowing the status of the listener.
    Anyway: your listener has been configured statically to listen for two instances (PBDPASSM and TESTSID). "Configuring statically" means simply that your listener.ora will have a SID_LIST section in which both those services are listed as things the listener should be listening for. Because they're in the SID_LIST, that's why those services are listed in your lsnrctl status report -and that's also why they're listed as status UNKNOWN.
    If the instances were actually running, and unless you've set the LOCAL_LISTENER parameter in the init.ora for each instance to something weird, you would **also** see each service listed as 'Ready', because each instance's PMON background process would be registering the existence of its instance dynamically and actively with the listener. It's not saying, "Please listen for this but I don't know if it's running or not" but "here I am and I want you to listen on my behalf". So the listener does know its status at that point, and hence records it as 'ready'.
    The fact that you don't have any statuses of 'ready' means the instances aren't running or they are running but unable to register with the listener (perhaps because LOCAL_LISTENER is directing them to some other listener running on another port). But if dynamic registration was not working for that reason, static registration would still be fine for the purposes of making connections if the instance was actually up. Which again raises the question of which one you managed to connect to when you did the sqlplus / as sysdba in your test.
    I don't believe the case of anything is the issue here, by the way: your listener reports "testsid" and your SERVICE_NAME is asking for a connection to "testsid", so I see no problem there. It would be different if one said 'TESTSID' and the other 'testsid', but that's not what's happening.
    I'd like to see the output of a ps -ef | grep PMON for this host. I'd also like to see the results of a select instance_name, status from v$instance when you do your test connection. And I'd finally like to see the output of show parameter local_listener.

  • How to get the trace file name for current running application?

    Hi, I want to know if it is possible to get the file name directly for current running application instance which is launched by javaws.
    There is a property "deployment.user.logdir" tells the log directory, it would be great if a file name property
    is available. something like "instance.trace.file".
    Our application wants it because we would like our client send use the application log by clicking a "send error"
    button, the codes finds the trace file and compress it and send it by using a smtp server.
    In 1.5, we can do it by using a shell program.

    I found other asked it before, but I tried to set both properties, but neither works. my sun JRE version :java version "1.6.0_04"
    <property
    name="deployment.javaws.traceFileName"
    value="abcfefsfdsf"/>
    <property
    name="deployment.javapi.trace.filename"
    value="235235235"/>
    But it always write to one trace file with name lik javaws63645.trace

  • Need to get the operating unit name for AP report

    Hi,
    I'm really new to XML/BI publisher. I have to customize a oracle report called Payables Posted Payment Register. The package XLA_JELINES_RPT_PKG ties into this report. Upon reading the package it's pretty confusing. Anyway, there is a parameter called P_SECURITY_ID_INT_1 which is the operating unit. I'm trying to display the operation unit in my report but it only returns the operating unit id and I need the name of the operationg unit. So I'm guessing im going to need to grab it somehow in the XLA_JELINES_RPT_PKG. Is this correct? Any suggestions on the best approach?
    Thank you!! Your help is so much appreciated!

    Hi,
    after time elavualtion use t code PT66,  in this t.code double click on the each month(period) then you can get the internal table like ZES, SALDO, ZKO. again double click on the each internal table, you can get the information through the time types.  Like , now you want the overtime hours, 0903, 0904 with this time types you can get the each employee no. of. overtime hours.
    ZL, ZES, SALDO, TIP entries are internal table , you could not get any results from this table with using se11, se16.
    With PT_BAL00 with this report also we can get the overtime hours with the help of time events.
    Good luck
    Devi

  • How do I get the library file name for a linked icon?

    Hello,
    Using AW 7.02
    I have a couple of library files, one contains graphics, the
    other audio. I am using a dive routine to run through the icons in
    the a7p file and if it is a sound icon that is "linked", I want to
    make sure that it is linked to the audio library file.
    What I am having a problem with is obtaining the linked
    filename.
    Is there an icon property that contains the linked info? I
    believe that there is, as when I right click on a sound icon which
    is linked to a library file, I noticed that I could select Library
    Links... from the pop up menu, and I found the following data:
    Library Link Name:1.3.1s
    Linked To:1.3.1s
    In Library:lessonAudio.a7l <<<----This is what I am
    interested in getting (if it is lessonGraphics.a7l then I want to
    warn the developer)
    A little test that I did with one audio icon in the flow line
    just prior to the calc contents below:
    T_Str := GetIconContents(IconPrev(IconID)) --
    produced:[[#type:#linkedIcon, #iconID:262168]]
    if T_Str[1, #type] = #linkedIcon then
    T_Str1 := GetIconContents(T_Str[1,#iconID]) --
    produced:[[#type:#sound, #filename:"", #storage:#internal,
    #format:"MP3"]]
    else
    T_Str1 := "Otherwise, something else."
    end if
    #filename above appears not to be the place to look as it may
    contain the actual pathname to the mp3 file, IF that info is still
    available.
    FYI, The audio in the library file is NOT linked externally.
    Thanks
    Mike

    You can figure this out mathematically. ((Library number + 1)
    * 65536) + 7
    will be the first icon number in the library. You can also
    use
    GetLibraryInfo which gives you information on the libraries
    including the
    root icon of each. So your icon 262168 will be in the 3rd
    library returned
    from GetLibraryInfo()
    Mike
    ====================
    Mike Baker
    Adobe Community Expert
    mike-baker at cox dot net
    "MN_Mike" <[email protected]> wrote in
    message
    news:g9s2tg$8a$[email protected]..
    > Hello,
    >
    > Using AW 7.02
    >
    > I have a couple of library files, one contains graphics,
    the other audio.
    I
    > am using a dive routine to run through the icons in the
    a7p file and if it
    is a
    > sound icon that is "linked", I want to make sure that it
    is linked to the
    audio
    > library file.
    What I am having a problem with is obtaining the linked
    > filename.
    >
    > Is there an icon property that contains the linked info?
    I believe that
    there
    > is, as when I right click on a sound icon which is
    linked to a library
    file, I
    > noticed that I could select Library Links... from the
    pop up menu, and I
    found
    > the following data:
    >
    > Library Link Name:1.3.1s
    > Linked To:1.3.1s
    >
    In Library:lessonAudio.a7l <<<----This is what I am
    interested in
    getting
    > (if it is lessonGraphics.a7l then I want to warn the
    developer)
    >
    >
    > A little test that I did with one audio icon in the flow
    line just prior
    to
    > the calc contents below:
    >
    > T_Str := GetIconContents(IconPrev(IconID)) --
    > produced:[[#type:#linkedIcon, #iconID:262168]]
    > if T_Str[1, #type] = #linkedIcon then
    > T_Str1 := GetIconContents(T_Str[1,#iconID]) --
    produced:[[#type:#sound,
    > #filename:"", #storage:#internal, #format:"MP3"]]
    > else
    > T_Str1 := "Otherwise, something else."
    > end if
    >
    > #filename above appears not to be the place to look as
    it may contain the
    > actual pathname to the mp3 file, IF that info is still
    available.
    >
    > FYI, The audio in the library file is NOT linked
    externally.
    >
    >
    > Thanks
    >
    > Mike
    >

  • How to get LR using unique names for each file?

    Hey there,
    I see LR does modify the name of the File when there is already one file with the same name in the folder of import, but once you choose a different folder it does import the File with the original name. I just realized that over the years using Folders such as Pictures 2009, Pictures 2010 and so on, I have three or four times Files with the same Name. Is there a way to tell LR to always use unique names when it imports?

    Use a date-description-sequence.ext naming template for renaming as you import [or if you prefer after you import]. This means you never have duplicates unless you for some bizarre reason use same name description for two sets of files on same day. And if you need to do just that, simply make the start number of second/third lot of files be one number greater than previous batch from same day.
    You can set up what ever naming format you desire in file rename dialogue and have that as your default.
    Leaving files names as they come out of the camera is asking for big trouble as invariably they will duplicate, which is not a good idea even if in different folders.
    F2 gets you renaming dialogue when in Library.

Maybe you are looking for