From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chang Kai Cheong Newsgroups: gmane.os.tru64.managers Subject: C2 LDAP authentication against Openldap Date: Thu, 06 Mar 2003 16:51:59 +0800 (HKT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1046942381 8646 80.91.224.249 (6 Mar 2003 09:19:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2003 09:19:41 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Mar 06 10:19:39 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18qrXP-0002FF-00 for ; Thu, 06 Mar 2003 10:19:39 +0100 Original-Received: (qmail 23197 invoked by uid 5); 6 Mar 2003 09:19:57 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 23188 invoked by uid 49493); 6 Mar 2003 09:19:55 -0000 Original-Received: from kcchang@hkusua.hku.hk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 6.411571 secs); 06 Mar 2003 09:19:55 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 6 Mar 2003 09:19:48 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HBB00L38LWZ43@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 06 Mar 2003 04:19:48 -0500 (EST) Original-Received: from hkusua.hku.hk (hkue10ka.hku.hk [147.8.2.91]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HBB0023TLWUUC@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 06 Mar 2003 04:19:44 -0500 (EST) Original-Received: from hkusua.hku.hk (localhost [127.0.0.1]) by hkusua.hku.hk (8.12.8/8.12.8) with ESMTP id h268q1cm009681 for ; Thu, 06 Mar 2003 16:52:01 +0800 (HKT) Original-Received: from localhost (kcchang@localhost) by hkusua.hku.hk (8.12.8/8.12.8/Submit) with ESMTP id h268px9c009642 for ; Thu, 06 Mar 2003 16:52:01 +0800 (HKT) X-Sender: kcchang@hkusua Original-To: tru64-unix-managers@ornl.gov X-MailScanner: 0 Xref: main.gmane.org gmane.os.tru64.managers:3550 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3550 Dear managers, A while back, I posted a problem on the LDAP authentication inter-operability of Tru64 5.1A BL3 with C2 enabled. Perhaps I did not describe the problem very well, I never get any feedback yet :) I tried to set up LDAP authentication on a Tru64 5.1A BL3 (C2 enabled) against an Openldap directory (2.0.27 on another Unix machine). Following through the documentations on Internet Express and Best Practices, I finally made it working after issuing the following command: /usr/internet/ldap_tools/ldap_passwd When I checked against the LDAP server, the userPassword was inserted in the following format: userPassword: According to the Openldap documentation, the userPassword attribute should be stored as: userPassword: {} In my case, the is CRYPT. Therefore, the format of userPassword should be "{CRYPT}". However, this would break other LDAP-aware applications on checking on the validity of the userPassword attribute. In addition, I used the command: /usr/internet/ldap_tools/ldap_get_user can get the correct passwords from LDAP server regardless of the format of userPassword, i.e.,: testuser:5gXDZeVTp99Z.:1000000:110:Chang Kai Cheong:/tmp:/bin/ksh testusr1:5gXDZeVTp99Z.:1000001:110:Chang Kai Cheong:/tmp:/bin/ksh testusr2:5gXDZeVTp99Z.:1000002:110:Chang Kai Cheong:/tmp:/bin/ksh testusr3:5gXDZeVTp99Z.:1000003:110:Chang Kai Cheong:/tmp:/bin/ksh testusr4:5gXDZeVTp99Z.:1000004:110:Chang Kai Cheong:/tmp:/bin/ksh testusr5:5gXDZeVTp99Z.:1000005:110:Chang Kai Cheong:/tmp:/bin/ksh However, edauth -g will get an asterisk for userPassword in "{CRYPT}" format: # edauth -g testusr5 testusr5:u_name=testusr5:u_id#1000005:u_pwd=5gXDZeVTp99Z.:u_oldcrypt#3:\ :u_suclog#1043319991:u_suctty=INET#xxxx.hku.hk:u_unsuctty=INET#xxxx.hku.hk:u_unsuclog#1043319728:\ :u_lock@:chkent: # edauth -g testusr6 testusr6:u_name=testusr6:u_id#1000006:u_pwd=*:u_oldcrypt#3:\ :u_unsuctty=INET#hkuoad2.hku.hk:u_unsuclog#1043320549:u_numunsuclog#1:u_lock@:\ :u_flogins#1:chkent: I wonder if it is a bug of C2 security enabled or I missed anything. Any input is appreciated. Thanks in advance. KC Chang Computer Centre The University of Hong Kong