AFP548 Changing the world one server at a time.

bustthis

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 58 total)
  • Author
    Posts
  • in reply to: kerberos oddities #358388
    bustthis
    Participant

    i’m sorry, that was from the server… i see the problem with the client i use everyday, so here it is from the client:
    [workstation1:~] charlesx% sudo klist
    Password:
    Kerberos 5 ticket cache: ‘API:Initial default ccache’
    Default Principal: charlesx@MYDOMAIN.COM
    Valid Starting Expires Service Principal
    07/01/04 02:32:54 07/01/04 12:32:54 krbtgt/MYDOMAIN@MYDOMAIN.COM
    renew until 07/08/04 02:32:54
    07/01/04 02:32:57 07/01/04 12:32:54 afpserver/mydomain@MYDOMAIN.COM
    renew until 07/08/04 02:32:54
    07/01/04 02:34:10 07/01/04 12:32:54 imap/mydomain@MYDOMAIN.COM
    renew until 07/08/04 02:32:54
    07/01/04 02:35:10 07/01/04 12:32:54 host/mydomain@MYDOMAIN.COM
    renew until 07/08/04 02:32:54
    07/01/04 03:52:18 07/01/04 12:32:54 smtp/mydomain@MYDOMAIN.COM
    renew until 07/08/04 02:32:54

    obiviously, i don’t have 3 imap tickets in this example, but i usually get 2 or 3 imap tickets for user charlesx, when 3 different users log in from mail.app
    it seems to happen if i need to reboot the client after a few days and i first launch mail.app. i find if my client is up for a week, i start getting bad login errors and TOKEN – malformed etc…

    i haven’t seen this behavior in ssh, sftp, or smtp… however, when i ssh into the server, i get unknown_pid errors that i guess are sshd related. if i use a ssh or sftp gui, like fugu or rbrowser i get 4 to 5 krbtgt tickets, but i guess that’s normal… i don’t know.

    in reply to: kerberos oddities #358386
    bustthis
    Participant

    % sudo klist
    Password:
    Kerberos 5 ticket cache: ‘API:Initial default ccache’
    Default Principal: user@MYDOMAIN.COM
    Valid Starting Expires Service Principal
    07/01/04 00:19:02 07/01/04 10:19:02 krbtgt/MYDOMAIN.COM@MYDOMAIN.COM
    renew until 07/08/04 00:19:02

    % sudo klist -kt
    Keytab name: FILE:/etc/krb5.keytab
    KVNO Timestamp Principal
    —- —————– ——————————————————–
    3 06/02/04 04:16:40 host/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 host/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 host/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 smtp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 smtp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 smtp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 pop/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 pop/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 pop/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 imap/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 imap/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 imap/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 ftp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 ftp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 ftp/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 afpserver/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 afpserver/mydomain.com@MYDOMAIN.COM
    3 06/02/04 04:16:40 afpserver/mydomain.com@MYDOMAIN.COM

    if i leave my mail.app open for a few days, i start getting error messages… bad login and TOKEN errors.

    in reply to: Keytab not spawning? #358382
    bustthis
    Participant

    i should of explained myself better in that post 🙂

    i was getting the same error:
    klist: No such file or directory while starting scan of keytab (null)

    this seemed to always occur when i ran klist -kt from a remote session with the server as root. if i ran sudo klist -kt on the server directly it would report the proper keytab settings. i’m not sure if that makes sense…

    in reply to: Keytab not spawning? #358320
    bustthis
    Participant

    try sudo klist -kt

    in reply to: kerberos oddities #358286
    bustthis
    Participant

    any recomendations on better krb mail client? i don’t like eudora!

    this only happens from time to time – i get 3 imap tickets for the user thats logged in… haven’t seen anyone else talk about this problem.

    maybe this is a new post, sorry…

    i am reading this now: http://web.mit.edu/macdev/KfM/Common/Documentation/preferences-osx.html#quickguide

    i don’t seem to have /etc/krb5.conf… i guess /var/db/krb5kdc/kdc.conf
    is being used, the reason i am asking is because i would like to see some of the logs associated with kerberos. i have the following lines in:
    [logging]
    kdc = FILE:/var/log/krb5kdc/kdc.log
    admin_server = FILE:/var/log/krb5kdc/kadmin.log

    but no .logs are being created, do i need to add a line to the /etc/syslog?

    hopefully, if enough people report the mail.app bug to apple they will update it.

    thanks for your help

    in reply to: dns trouble… i think? #358240
    bustthis
    Participant

    my dns records at dyndns are:

    charles-x.com – 20 mx2.mailhop.org
    charles-x.com – 10 mx2.mailhop.org

    i am very new at this dns stuff, but i thought i set it up so the mx points to an A record-
    server.charles-x.com. IN A 10.0.1.201
    charles-x.com. IN MX 10 server.charles-x.com.
    mail.charles-x.com. IN CNAME server.charles-x.com

    and the cname was there so i could use “mail” instead of “server” – all of my ssl certs are mail.charles-x.com, so i’d like to keep that, but i don’t have another machine to add, until my g5 arrives!!!

    would it make sense to do this:
    server.charles-x.com. IN A 10.0.1.201
    mail.charles-x.com IN A 10.0.1.201

    two A records for the same machine? i wouldn’t think so, but what do i know!

    maybe i don’t have a clue 🙂 i think i need a good book – i just find it confusing with dyndns in the mix.

    in reply to: dns trouble… i think? #358239
    bustthis
    Participant

    no, i haven’t becaue i thought it was a dns issue… but i will now. i noticed it behaving weird after i added the mx record.

    i have freshclam check 6 times a day… i just find it a little odd that clamd stops checking and will start again when mail is sent or received.

    i just changed the hostname in my amavisd.conf from server.charles-x.com to charles-x.com and i think that fixed it, i won’t know for a couple of hours.

    i really just wanted to know if my mx record looked alright and if it was needed for my particular setup.

    in reply to: kerberos oddities #358223
    bustthis
    Participant

    ok, let me ask a lame question… i have mail.app set up for 3 imap accounts on a 10.3.4 client. all 3 accounts are users that live in ldap/127.0.0.1 on the server – all are set to use gssapi k5 for smtp and imap.

    i get 3 imap tickets for “user 1” when checking mail for 3 different users – does this make sense? shouldn’t i be getting tickets for “user1” “user2” and “user3”? am i way off track?

    in reply to: kerberos oddities #358214
    bustthis
    Participant

    2 krbtgts for the same user… i remember on my last setup, tickets were issued as they were needed and if they weren’t expired. now, i get them all the time… mostly for krbtgt and imap… kerberos app lists 2 imap tickets for same user.

    i also notice that the case changes after i get a new krbtgt ticket from servers.realm.com@SERVERS.REALM.COM to SERVERS.REALM.COM@SERVERS.REALM.COM… not sure if this makes a difference or not?

    in reply to: Kerberos and ssh #358163
    bustthis
    Participant

    no luck.. it seems the host tickets are being created when i ssh, but it always wants my password… which leads me to think this is something to do with my ssh config. i just did a clean install of 10.3.4 six days ago and i think my system is pretty “healthy”… 🙂

    thanks for your time,

    charles

    in reply to: Kerberos and ssh #358161
    bustthis
    Participant

    OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, OpenSSL 0x0090702f

    the client is 10.3.3, server 10.3.4… yes, i get a valid ticket.

    a couple of weeks ago, someone suggested to me to take out the flags = REUSE IPv6 line in /etc/xinetd.d/ssh to avoid getting the POSSIBLE BREAKIN ATTEMPTS in my logs, could this be it? also, ever since i installed 10.3.4 update on my server, i get this everytime i log out from a remote login – error: BSM audit: solaris_audit_record failed to write “sshd logout ” record: Operation not supported

    i am not sure if either are related…

    in reply to: Kerberos and ssh #358159
    bustthis
    Participant

    after reboot server and client –

    [myclient:~] charlesx% ssh -2 my.server.com
    charlesx@my.server.com’s password:

    server’s system log:
    Jun 2 22:44:34 charles-x xinetd[8188]: START: ssh pid=18876 from=10.0.1.2
    Jun 2 22:44:35 charles-x krb5kdc[536]: TGS_REQ (5 etypes {16 23 1 3 2}) 10.0.1.2: ISSUE: authtime 1086210789, etypes {rep=16 tkt=16 ses=16}, charlesx@MY.REALM.COM for host/my.server.com@MY.REALM.COM
    Jun 2 22:44:40 charles-x sshd[18876]: Accepted password for charlesx from 10.0.1.2 port 53340 ssh2

    looks like it requested the ticket, but i still had to enter my password.

    in reply to: Kerberos and ssh #358154
    bustthis
    Participant

    thanks for your reply. i followed the article step by step and ran – sudo sso_util configure -r REALM -a admin_name -p password all

    this is my keytab:

    Keytab name: FILE:/etc/krb5.keytab
    KVNO Timestamp Principal
    —- —————– ——————————————————–
    3 06/02/04 04:16:40 host/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 host/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 host/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 smtp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 smtp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 smtp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 pop/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 pop/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 pop/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 imap/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 imap/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 imap/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 ftp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 ftp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 ftp/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 afpserver/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 afpserver/server.example.com@SERVER.EXAMPLE.COM
    3 06/02/04 04:16:40 afpserver/server.example.com@SERVER.EXAMPLE.COM

    i will check out the mit extras… i made a symlink to the kerberos.app into my utilities folder and everything seems to be working – imap,smtp, login, afp… i haven’t tried ftp, but when i ssh server.example.com, i am prompted for my password. i see there is some “kerberos stuff” in the sshd_config, but not sure how to configure that and the article suggests that it will work on healthy system…

    thanks again,

    charles

    in reply to: DNS FOR 10.3 QUESTION #358134
    bustthis
    Participant

    after bugging joel… he suggested to turn off “allow secure connections” under afp settings in server admin, and sure enough that did the job. thanks again for all your help 🙂

    in reply to: DNS FOR 10.3 QUESTION #358131
    bustthis
    Participant

    mostly used your examples and i plan to change them a little, i didn’t expect it to work

    ok, this is db.charles-x;

    ;
    ; Name servers
    ;
    charles-x.com. IN NS server.charles-x.com.

    ;
    ; Addresses for the canonical names
    ;
    localhost.charles-x.com. IN A 127.0.0.1
    server.charles-x.com. IN A 10.0.1.201
    workstation1.charles-x.com. IN A 10.0.1.3
    workstation2.charles-x.com. IN A 10.0.1.4
    dhcp1.charles-x.com. IN A 10.0.1.101
    dhcp2.charles-x.com. IN A 10.0.1.102
    dhcp3.charles-x.com. IN A 10.0.1.103
    dhcp4.charles-x.com. IN A 10.0.1.104
    dhcp5.charles-x.com. IN A 10.0.1.105
    gateway.charles-x.com. IN A 10.0.1.1

    ;
    ; Aliases
    ;
    mail.charles-x.com. IN CNAME server.charles-x.com.
    http://www.charles-x.com. IN CNAME server.charles-x.com.
    test.charles-x.com. IN CNAME server.charles-x.com.
    mylaptop.charles-x.com. IN CNAME workstation2.charles-x.com.

    and db.10.0.1:
    1.0.10.in-addr.arpa. IN SOA server.charles-x.com. serveradmin.charles-x.com. (
    2004053000 ; Serial
    10800 ; Refresh after 3 hours
    3600 ; Retry after 1 hour
    604800 ; Expire after 1 week
    86400 ) ; Minimum TTL of 1 day

    ;
    ; Name servers
    ;
    1.0.10.in-addr.arpa. IN NS server.charles-x.com.

    ;
    ; Addresses point to canonical name
    ;
    1.1.0.10.in-addr.arpa. IN PTR gateway.charles-x.com.
    201.1.0.10.in-addr.arpa. IN PTR server.charles-x.com.
    3.1.0.10.in-addr.arpa. IN PTR workstation1.charles-x.com.
    4.1.0.10.in-addr.arpa. IN PTR workstation2.charles-x.com.
    101.1.0.10.in-addr.arpa. IN PTR dhcp1.charles-x.com.
    102.1.0.10.in-addr.arpa. IN PTR dhcp2.charles-x.com.
    103.1.0.10.in-addr.arpa. IN PTR dhcp3.charles-x.com.
    104.1.0.10.in-addr.arpa. IN PTR dhcp4.charles-x.com.
    105.1.0.10.in-addr.arpa. IN PTR dhcp5.charles-x.com.

Viewing 15 posts - 31 through 45 (of 58 total)