Author: jsuchome
Date: Tue Jun 2 22:39:28 2009
New Revision: 57400
URL: http://svn.opensuse.org/viewcvs/yast?rev=57400&view=rev
Log:
- removed obsolete functions from PamSettings
- 2.18.0
Modified:
trunk/pam/VERSION
trunk/pam/package/yast2-pam.changes
trunk/pam/src/Pam.ycp
trunk/pam/src/PamSettings.ycp
trunk/pam/testsuite/tests/Read.ycp
Modified: trunk/pam/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/pam/VERSION?rev=57400&r1=57399&r2=57400&view=diff
==============================================================================
--- trunk/pam/VERSION (original)
+++ trunk/pam/VERSION Tue Jun 2 22:39:28 2009
@@ -1 +1 @@
-2.17.1
+2.18.0
Modified: trunk/pam/package/yast2-pam.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/pam/package/yast2-pam.changes?rev=57400&r1=57399&r2=57400&view=diff
==============================================================================
--- trunk/pam/package/yast2-pam.changes (original)
+++ trunk/pam/package/yast2-pam.changes Tue Jun 2 22:39:28 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Jun 2 22:31:29 CEST 2009 - jsuchome@suse.cz
+
+- removed obsolete functions from PamSettings
+- 2.18.0
+
+-------------------------------------------------------------------
Mon Nov 10 17:11:58 CET 2008 - visnov@suse.cz
- make it build
Modified: trunk/pam/src/Pam.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/pam/src/Pam.ycp?rev=57400&r1=57399&r2=57400&view=diff
==============================================================================
--- trunk/pam/src/Pam.ycp (original)
+++ trunk/pam/src/Pam.ycp Tue Jun 2 22:39:28 2009
@@ -15,7 +15,7 @@
/**
* Query PAM configuration for status of given module
- * @param string PAM module (e.g. ldap, pwcheck)
+ * @param string PAM module (e.g. ldap, cracklib)
* @return map keys are 'management groups' (e.g. auth), values
* are lists of options
*/
Modified: trunk/pam/src/PamSettings.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/pam/src/PamSettings.ycp?rev=57400&r1=57399&r2=57400&view=diff
==============================================================================
--- trunk/pam/src/PamSettings.ycp (original)
+++ trunk/pam/src/PamSettings.ycp Tue Jun 2 22:39:28 2009
@@ -22,150 +22,6 @@
list<string> security_files = [];
-//---------------------------- functions for handling /etc/security/*.conf
-
-/**
- * Returns list of files currently handled by the module
- * @return list
- */
-global define list<string> GetFiles () ``{
-
- y2warning ("this function is obsolete, use Pam module instead");
- if (security_files == [])
- security_files = (list<string>) SCR::Dir (.etc.security.section);
- if (security_files == nil)
- security_files = [];
- return security_files;
-}
-
-/**
- * Form absolute path name.
- * @param file name (or unambiguous substring, like "unix2" or "pwcheck")
- * @return path to file
- */
-define string Filename (string name) ``{
-
- y2warning ("this function is obsolete, use Pam module instead");
- return "";
-}
-
-/**
- * Returns the values (options) of one type in the given file
- * @param file file name
- * @param type type of management group (these are used for authentication,
- * account management and password management)
- * @return list of options
- * @example
- * GetValues ("pwcheck", "password") returns [ "nullok", "cracklib" ]
- */
-global define list<string> GetValues (string file, string type) ``{
-
- y2warning ("this function is obsolete, use Pam module instead");
- // FIXME temporary hack for backward compatibility
- if (file == "pam_pwcheck" && type == "password")
- {
- map pwcheck = Pam::Query ("pwcheck");
- return pwcheck["password"]:[];
- }
- return [];
-}
-
-/**
- * Returns the given file contents in the map form
- * @param file file name
- * @return map which maps type to list of its options
- * @example
- * GetFile ("pwcheck") returns $[ "password" : [ "nullok", "cracklib" ] ]
- */
-global define map GetFile (string file) ``{
-
- y2warning ("this function is obsolete, use Pam module instead");
- return $[];
-}
-
-
-/**
- * Adds a new options to the current list of options
- * @param file file name
- * @param type type of management group
- * @return success
- * @example
- * AddValue ("pwcheck", "password", "md5" ])
- */
-global define boolean AddValue (string file, string type, string value) ``{
- y2warning ("this function is obsolete, use Pam module instead");
- if (file == "pam_pwcheck")
- {
- if (value == "no_obscure_checks")
- return Pam::Add ("pwcheck-no_obscure_checks");
- if (value == "cracklib")
- return Pam::Add ("pwcheck-cracklib");
- list split = splitstring (value, "=");
- string pth = split[1]:"";
- if (issubstring (value, "cracklib="))
- return Pam::Add ("pwcheck-cracklib-path=" + pth);
- if (issubstring (value, "minlen="))
- return Pam::Add ("pwcheck-minlen=" + pth);
- if (issubstring (value, "remember="))
- return Pam::Add ("pwcheck-remember=" + pth);
- }
- else if (file == "unix2" || file == "pam_unix2")
- {
- if (value == "use_ldap")
- return Pam::Add ("ldap");
- if (value == "use_krb5")
- return Pam::Add ("krb5");
- if (value == "winbind")
- return Pam::Add ("winbind");
- }
- return false;
-}
-
-/**
- * Deletes an options from the current list of options
- * @param file file name
- * @param type type of management group
- * @return success
- * @example
- * RemoveValue ("pwcheck", "password", "md5" ])
- */
-global define boolean RemoveValue (string file, string type, string value) ``{
- y2warning ("this function is obsolete, use Pam module instead");
- if (file == "pam_pwcheck")
- {
- if (value == "no_obscure_checks")
- return Pam::Remove ("pwcheck-no_obscure_checks");
- if (issubstring (value, "cracklib"))
- return Pam::Remove ("pwcheck-cracklib");
- if (issubstring (value, "minlen="))
- return Pam::Remove ("pwcheck-minlen=");
- if (issubstring (value, "remember="))
- return Pam::Remove ("pwcheck-remember=");
- }
- else if (file == "unix2" || file == "pam_unix2")
- {
- if (value == "use_ldap")
- return Pam::Remove ("ldap");
- if (value == "use_krb5")
- return Pam::Remove ("krb5");
- if (value == "winbind")
- return Pam::Remove ("winbind");
- }
- return false;
-}
-
-/**
- * Saves the new list of options of one type to given file
- * @param file file name
- * @param type type of management group
- * @return success
- * @example
- * SetValues ("pwcheck", "password", [ "cracklib", "md5" ])
- */
-global define boolean SetValues (string file, string type, list<string> values) ``{
- y2warning ("this function is obsolete, use Pam module instead");
- return false;
-}
//---------------------------- functions for handling /etc/default/passwd
Modified: trunk/pam/testsuite/tests/Read.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/pam/testsuite/tests/Read.ycp?rev=57400&r1=57399&r2=57400&view=diff
==============================================================================
--- trunk/pam/testsuite/tests/Read.ycp (original)
+++ trunk/pam/testsuite/tests/Read.ycp Tue Jun 2 22:39:28 2009
@@ -34,16 +34,4 @@
]
];
- /*
- DUMP ("==== PamSettings::GetFiles: =============================");
-
- TEST(``(PamSettings::GetFiles ()), [ READ, [], [] ], 0);
-
- DUMP ("==== PamSettings::GetValues (\"unix2\", \"passwd\") =====");
-
- TEST(``(PamSettings::GetValues ("unix2", "passwd")), [ READ, [], [] ], 0);
-
- TEST(``(PamSettings::GetValues ("unix2", "auth")), [ READ, [], [] ], 0);
- */
-
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org