if(pwd!=null) user=Messages.PAMSecurityRealm_User(pwd.getLoginName()); else user=Messages.PAMSecurityRealm_CurrentUser(); Passwd opwd = api.getpwuid(st.uid()); String owner; if(opwd!=null) owner=opwd.getLoginName(); else owner=Messages.PAMSecurityRealm_Uid(st.uid());
if(pwd!=null) user=Messages.PAMSecurityRealm_User(pwd.getLoginName()); else user=Messages.PAMSecurityRealm_CurrentUser(); Passwd opwd = api.getpwuid(st.uid()); String owner; if(opwd!=null) owner=opwd.getLoginName(); else owner=Messages.PAMSecurityRealm_Uid(st.uid());
String user; if (pwd != null) { user = "Error:" + Messages.PAMSecurityRealm_User(pwd.getLoginName()); } else { user = "Error:" + Messages.PAMSecurityRealm_CurrentUser(); String owner; if (opwd != null) { owner = opwd.getLoginName(); } else { owner = "Error:" + Messages.PAMSecurityRealm_Uid(st.uid());
private static IRubyObject setupPasswd(Ruby runtime, Passwd passwd) { IRubyObject[] args = new IRubyObject[] { runtime.newString(passwd.getLoginName()), runtime.newString(passwd.getPassword()), runtime.newFixnum(passwd.getUID()), runtime.newFixnum(passwd.getGID()), runtime.newString(passwd.getGECOS()), runtime.newString(passwd.getHome()), runtime.newString(passwd.getShell()), runtime.newFixnum(passwd.getPasswdChangeTime()), runtime.newString(passwd.getAccessClass()), runtime.newFixnum(passwd.getExpire()) }; return RubyStruct.newStruct(runtime.getPasswdStruct(), args, Block.NULL_BLOCK); }