From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hysen Hoxha Newsgroups: gmane.os.tru64.managers Subject: Summary : LDAP @ C2 Date: Fri, 04 Apr 2003 17:40:25 +0200 Organization: AlbTelekom Sh.A Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <000b01c2fac0$839a7d80$fa02a8c0@sandri> Reply-To: Hysen Hoxha NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1049557837 32595 80.91.224.249 (5 Apr 2003 15:50:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2003 15:50:37 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sat Apr 05 17:50:33 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 191pw9-0008St-00 for ; Sat, 05 Apr 2003 17:50:33 +0200 Original-Received: (qmail 7771 invoked by uid 5); 5 Apr 2003 15:50:38 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7762 invoked by uid 49493); 5 Apr 2003 15:50:38 -0000 Original-Received: from hysenhoxha@atnet.com.al by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.7/5.0):. Processed in 0.452927 secs); 05 Apr 2003 15:50:38 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 5 Apr 2003 15:50:37 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCV008N9O0ASI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 05 Apr 2003 10:50:36 -0500 (EST) Original-Received: from tiran.atnet.com.al ([195.22.199.4]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCV0001VO07ZV@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 05 Apr 2003 10:50:32 -0500 (EST) Original-Received: from sandri (ns3.albtelekom.com.al [192.168.2.250]) by tiran.atnet.com.al (8.11.4/8.11.4) with SMTP id h35Fe2V23379 for ; Sat, 05 Apr 2003 16:40:03 +0100 (GMT+0100) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Priority: 3 X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:3903 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3903 Hello list For my latest posting about LDAP & C2 , i want to thank Dave Love for his answer . To make a summary of my case , i wanted to have users to be authenticated against LDAP database first , and then fall back in c2 security mechanisms .So i could avoid /etc/passwd for the majority of users . I took the following steps , as docs say , Enabled ldap module by running #$LDAP_TOOLS_HOME/ldap enable Modified /etc/ldapcd.conf according to my settings Added crypt_passwd: 1 at the end of this file . Then checked the conf whith #$LDAP_TOOLS_HOME/ldap_check And then added a local ldap user with : #$LDAP_TOOLS_HOME/ldap_add_user And set his password with #$LDAP_TOOLS_HOME/ldap_passwd . I got stuck in the following step #echo "echo ":u_name=:u_id#:u_oldcrypt#3:u_lock@:chkent:" | /usr/tcb/bin/edauth -s The system kept saying , "Failed to parse entry beginning with etc". Because , it tried to find this corresponding entry in /etc/passwd of course , In the end i disabled and enabled ( i did this several times before but ??? ) ldap module and rebooted the hole system .and now everything works great , following the same previous steps ------------------------------------------------------ My original posting below Hello list I am trying to set up LDAP module for system authentication. I am running a Tru64 UNIX V5.1A with C2 enabled ( shadow passwords only ) , and Internet Express v5.6 installed ( with openldap 2.0.7 ) Following the guide provided in Internet Express Documentation , i have enabled ldap module for sys authentication . Then checked the configuration in /etc/ldapcd.conf by running ldap_check. ---------------- # /usrsr/internet/ldap_tools/ldap_check Loaded Configuration file /etc/ldapcd.conf Connected to LDAP server localhost Search base "o=ALBTELKO" confirmed Retrieved Object class information Password object class attributes verified Group object class attributes verified Directory configuration verified #_ ----------------- But , when trying to add a local user ( stored in ldap ) , with UserManagment Utility of Internet Expres , the script fails with : ------------------ Failed to parse input entry beginning with ":u_name=" ---------------- This is because , as the guide states , adding a ldap user with C2 enabled requires the extrastep as follows echo ":u_name=:u_id#:u_oldcrypt#3:u_lock@:chkent:" | /usr/tcb/bin/eduath -s But this fails because not such entry is found in /etc/passwd . So is it possible to have ldap authentication with C2 enabled or i am missing something in all this ??? Thanks all Hysen Hoxha AlbTelko , Albania Technical Chief , Internet Affiliate E-MAIL :hhoxha@atnet.com.al TEL: 003554375641 FAX:003554375641 ------------------------------------------------------------