[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap+squid authentication



ÿþ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=unicode"> <META content="MSHTML 5.50.4134.600" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV> <DIV><FONT face=Arial size=2>&nbsp;Hi gurus </FONT></DIV> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2>&nbsp;I want to authenticate&nbsp; taking givenname&nbsp; and userpassword in my ldif&nbsp; as login name&nbsp;:((</FONT></DIV> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial size=2>How could I do it.... and test it ....?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2>############ My slapd.conf ##########3</FONT></DIV> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial size=2>include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/etc/openldap/schema/core.schema<BR>include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/etc/openldap/schema/cosine.schema<BR>include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/etc/openldap/schema/inetorgperson.schema</FONT></DIV> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial size=2>database&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ldbm<BR>suffix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "o=usm"<BR>suffix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "dc=ldap,dc=usm,dc=com"<BR>rootdn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "cn=Admin,dc=ldap,dc=usm,dc=com"<BR>#rootdn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "cn=Admin,o=usm"<BR>rootdn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "givenname=Larry,o=usm"<BR>rootpw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; secret<BR>directory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/var/openldap-ldbm/<BR>defaultaccess&nbsp;&nbsp; read<BR>schemacheck&nbsp;&nbsp;&nbsp;&nbsp; on<BR>lastmod&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on</FONT></DIV> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial size=2>index&nbsp;&nbsp; cn,sn,st&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pres,eq,su</FONT></DIV></DIV> <DIV>----- Original Message ----- </DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=mhafizm@celcom.net.my href="mailto:mhafizm@celcom.net.my">Hafiz Malik</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=kavi_veda@yahoo.com href="mailto:kavi_veda@yahoo.com">kavitha</A> ; <A title=openldap-software@OpenLDAP.org href="mailto:openldap-software@OpenLDAP.org">openldap-software@OpenLDAP.org</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, December 01, 2001 7:12 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: ldap+squid authentication</DIV> <DIV><BR></DIV> <DIV><FONT face=Verdana size=2>hi there..</FONT></DIV> <DIV><FONT face=Verdana size=2>as far as i concerned if you want to do ldapsearch via "binddn" or "-D" you must include "-w" for rootpw.</FONT></DIV> <DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Verdana size=2>ldapsearch -x&nbsp; -b 'o=usm'&nbsp; UID=Jim&nbsp; servername</FONT></DIV> <DIV><FONT face=Verdana size=2>or</FONT></DIV> <DIV><FONT face=Verdana size=2>ldapsearch -x&nbsp; -D "UID =Jim,o=usm"&nbsp; -w secret -b 'o=usm'&nbsp;servername</FONT></DIV> <DIV><FONT face=Verdana size=2>where "UID=Jim,o=usm" should be&nbsp;ur rootdn and "secret" is ur rootpw</FONT></DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>