-Hide system accounts from listclusterusers output

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-03-05 15:02:45 +00:00
parent 08ca4627af
commit 9b0e28df5d

View File

@ -164,7 +164,7 @@ sub list_user_accounts { #provide enough data to construct an /etc/passwd lookin
$domain_components =~ s/^/dc=/;
my @searchcmd = qw/ldapsearch -H /;
push @searchcmd,"ldaps://$directoryserver","-b",$domain_components;
push @searchcmd,qw/(&(objectClass=user)(!(objectClass=computer))) sAMAccountName unixHomeDirectory uidNumber gidNumber cn loginShell/;
push @searchcmd,qw/(&(&(objectClass=user)(!(objectClass=computer)))(!(isCriticalSystemObject=TRUE))) sAMAccountName unixHomeDirectory uidNumber gidNumber cn loginShell/;
my $searchout;
my $searchin;
my $searcherr = gensym;