Fixed lookup of entire /etc/{passwd,group} file line.
[ira/wip.git] / testsuite / nsswitch / wbinfo.exp
index 81ac14b78f076d608bfb4d423bc8fd51f4e39ca7..3518db387be2c1513e4b087770336a11ca044e10 100644 (file)
@@ -295,10 +295,10 @@ proc check_errcode { args } {
     }
 }
 
     }
 }
 
-set gooduser_name [lindex $user_list 0]
+set gooduser_name [lindex [split [lindex $user_list 0] ":"] 0]
 set gooduser_sid [util_start "bin/wbinfo" "-n $gooduser_name"]
 
 set gooduser_sid [util_start "bin/wbinfo" "-n $gooduser_name"]
 
-set goodgroup_name [lindex $group_list 0]
+set goodgroup_name [lindex [split [lindex $group_list 0] ":"] 0]
 set goodgroup_sid [util_start "bin/wbinfo" "-n $goodgroup_name"]
 
 # Some conditions not tested:
 set goodgroup_sid [util_start "bin/wbinfo" "-n $goodgroup_name"]
 
 # Some conditions not tested: