Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49794 - in /trunk/ldap-server/src: LdapDatabase.ycp LdapServer.pm
  • From: rhafer@xxxxxxxxxxxxxxxx
  • Date: Wed, 06 Aug 2008 16:25:46 -0000
  • Message-id: <20080806162546.D5E4E2A00F@xxxxxxxxxxxxxxxx>
Author: rhafer
Date: Wed Aug 6 18:25:46 2008
New Revision: 49794

URL: http://svn.opensuse.org/viewcvs/yast?rev=49794&view=rev
Log:
Set rootpw when adding new database

Modified:
trunk/ldap-server/src/LdapDatabase.ycp
trunk/ldap-server/src/LdapServer.pm

Modified: trunk/ldap-server/src/LdapDatabase.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/LdapDatabase.ycp?rev=49794&r1=49793&r2=49794&view=diff
==============================================================================
--- trunk/ldap-server/src/LdapDatabase.ycp (original)
+++ trunk/ldap-server/src/LdapDatabase.ycp Wed Aug 6 18:25:46 2008
@@ -183,8 +183,8 @@
if( rootdn != "" ) db = add( db, "rootdn", rootdn );
if( rootpw != "" )
{
- db = add( db, "passwd", rootpw );
- db = add( db, "cryptmethod", cryptmethod );
+ db = add( db, "rootpw_clear", rootpw );
+ db = add( db, "pwenctype", cryptmethod );
}
baseDb = db;
break;

Modified: trunk/ldap-server/src/LdapServer.pm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/LdapServer.pm?rev=49794&r1=49793&r2=49794&view=diff
==============================================================================
--- trunk/ldap-server/src/LdapServer.pm (original)
+++ trunk/ldap-server/src/LdapServer.pm Wed Aug 6 18:25:46 2008
@@ -1222,6 +1222,7 @@
}
}
my $rc;
+ $db->{'rootpw'} = $self->HashPassword($db->{'pwenctype'},
$db->{'rootpw_clear'} );
if ( $index > 0 )
{
$rc = SCR->Write(".ldapserver.database.new.{".$index."}", $db);

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages