| | | Forum Newbie
       
Group: Forum Members Last Login: Tuesday, May 20, 2008 Posts: 2, Visits: 5 |
| When I search for users in LDAP and the user do not have an email address. Application will error "Object reference not set to an instance of an object". How to avoid this error? |
| | | | Junior Member
       
Group: Forum Members Last Login: Thursday, May 22, 2008 Posts: 6, Visits: 18 |
| Hi Email address is mandatory field, otherwise it will throws error. Basically If we are using LDAP resource handler the following three fields are mandatory. 1. purpose = identifier 2. purpose = name 3. purpose = email. Please try this and let us know results. Find below sample LDAP resource handler for your reference. <?xml version="1.0" encoding="utf-8"?> <XmlResourceHandler> <Properties> <Property name="samaccountname" type="string" purpose="identifier" displayname="Login ID" /> <Property name="name" type="string" purpose="name" displayname="Name" /> <Property name="mail" type="string" purpose="email" displayname="Email" /> <!--<Property name="title" type="string" purpose="designation" displayname="Designation" /--> <Property name="department" type="string" purpose="department" displayname="Department" /> <Property name="manager" type="string" displayname="Manager" purpose="manager" suppressdn="true" /> <Property name="memberof" type="string" purpose="group" displayname="Group" suppressdn="true" /> </Properties> <Preferences> <SearchScope>SubTree</SearchScope> <ReferralChasing>External</ReferralChasing> <TimeOut>50</TimeOut> <SizeLimit>60</SizeLimit> <AuthenticationUser></AuthenticationUser> <AuthenticationPassword></AuthenticationPassword> </Preferences> <LDAPServer>LDAP://</LDAPServer> <LDAPSearchBase>DC=skelta,DC=dom</LDAPSearchBase> <LDAPBaseFilter>(objectCategory=Person)</LDAPBaseFilter> </XmlResourceHandler> Regards, Anil. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: Tuesday, May 20, 2008 Posts: 2, Visits: 5 |
| | Not thing change, still same error |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, July 31, 2008 Posts: 145, Visits: 619 |
| To use active directory user with Skelta, you must specify email.
Regards, BiNo |
| |
|
|