Project

General

Profile

Revision 8217

Added by Jing Tao over 7 years ago

Remove a reistriction that it didn't show the similar accounts of "ou=Account" in the user registration.

View differences:

src/perl/ldapweb.cgi
429 429
                ")";
430 430
    }
431 431

  
432
    my @attrs = [ 'uid', 'o', 'cn', 'mail', 'telephoneNumber', 'title' ];
432
    my @attrs = [ 'uid', 'o', 'ou', 'cn', 'mail', 'telephoneNumber', 'title' ];
433 433
    my $found = findExistingAccounts($ldapurl, $searchBase, $filter, \@attrs);
434 434

  
435 435
    # If entries match, send back a request to confirm new-user creation
......
847 847
			foreach $entry ($mesg->all_entries) { 
848 848
                # a fix to ignore 'ou=Account' properties which are not usable accounts within Metacat.
849 849
                # this could be done directly with filters on the LDAP connection, instead.
850
                if ($entry->dn !~ /ou=Account/) {
850
                #if ($entry->dn !~ /ou=Account/) {
851 851
                    $foundAccounts .= "<p>\n<b><u>Account:</u> ";
852 852
                    $foundAccounts .= $entry->dn();
853 853
                    $foundAccounts .= "</b><br />\n";
......
858 858
                        $foundAccounts .= "<br />\n";
859 859
                    }
860 860
                    $foundAccounts .= "</p>\n";
861
                }
861
                #}
862 862
			}
863 863
        }
864 864
    	$ldap->unbind;   # take down session

Also available in: Unified diff