It took me a long time to figure this out... and then of course I said "DOH"
a lot... but you can query most ldap servers with a wildcard in the
attributes field to get all of the fields.  Below is a file I use for this
task.  Change the filter to a value that will only return one record.
(there is only one "kibbey" in our directory, so I use myself) If you don't,
the query will work, but you will get repeat attributes listed.  If anyone
has a better way to get all of the attributes out of an LDAP server, I'd
love to hear it.

<cfldap action="QUERY"
        name="GetAttributes"
        attributes="*"
        start="c=US"
        scope="SUBTREE"
        filter="(sn=kibbe*)"
        sort="cn"
        server="your.ldapserver.com"
        port="389"
        timeout="20">

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>All LDAP Attributes</title>
</head>

<body>

<cfoutput><b>Total Attributes: #getattributes.recordcount#</b></cfoutput>
<table border="1" cellpadding="3" cellspacing="0">
        <tr>
                <td><b>#</b></td>
                <cfloop index="Attribute" list="#GetAttributes.ColumnList#">
                <td nowrap><b><cfoutput>#Attribute#</cfoutput></b></td>
                </cfloop>
        </tr>
        <cfloop query="getattributes">
        <tr>
                <td><cfoutput>#CurrentRow#</cfoutput></td>
                <cfloop index="Attribute" list="#GetAttributes.ColumnList#">
                        <cfoutput>
                        <td nowrap>#Evaluate(
'GetAttributes.#Trim(Attribute)#' )#</td>
                        </cfoutput>
                </cfloop>
        </tr>
        </cfloop>
</table>

</body>
</html>

-----Original Message-----
From: Norman Elton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 19, 2000 4:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Novell Authentication


Steve,

How did you pass the UID and password into LDAP? I searched in Novell's
developer website, but couldn't find any useful information about LDAP (i.e.
a list of what attributes are available).

Also, were you querying GroupWise's LDAP, or NDS directly?

Thanks!

Norman Elton
Information Technology
College of William & Mary

-----Original Message-----
From: Steve Bernard [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 12:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Novell Authentication


I last tried this during the beta of CF 4.5. You can use CF's native SLDAP
client functionality to authenticate via an NDS 5 tree. The only thing I ran
into was that there isn't a login function per se. I used LDAP to query the
tree for specific fields, passing the UID and password along as part of the
query. If the username AND/OR password fail a generic "error occurred"
message was returned. To be somewhat reliable I wrote a parsing routine that
checked returned messages for strings indicating that there was an error. I
didn't have the time to really test out this functionality but, it holds
promise.

I haven't had a chance to look at it yet but, Rick's NWAuth holds
possibilities and I'm dying to check it out.

Regards,

Steve

-----Original Message-----
From: Rick Osborne [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Novell Authentication


I didn't see any useful responses to this, so I'll just plug myself for a
moment ... :)

I wrote a (free with source) ISAPI DLL for IIS that authenticates Novell
users against NDS trees.  I dunno if that's what you need, but if nothing
else you could always just look at the source and use LDAP to recreate it.
(I *think* that should work anyway.)  It's available at:

http://www.rixsoft.com/NWAuth/

HTH,
Rick

-----Original Message-----
From: Norman Elton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 15, 2000 7:42 PM
To: [EMAIL PROTECTED]
Subject: Novell Authentication


Has anyone seen a way to authenticate a user's password from a Novell NDS
server?

Norman Elton
Information Technology
College of William & Mary

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to