[23695] in Kerberos
Re: change principal using perl Authen::krb5::admin
daemon@ATHENA.MIT.EDU (Jason T Hardy)
Mon Apr 11 15:41:45 2005
From: Jason T Hardy <jthardy@uta.edu>
To: FM <dist-list@lexum.umontreal.ca>
In-Reply-To: <425AC848.6000807@lexum.umontreal.ca>
Date: Mon, 11 Apr 2005 14:41:00 -0500
Message-Id: <1113248460.4653.9.camel@dionysus.uta.edu>
Mime-Version: 1.0
cc: Mailing List Kerberos <kerberos@mit.edu>
Content-Type: multipart/mixed; boundary="===============34085327102279761=="
Errors-To: kerberos-bounces@mit.edu
--===============34085327102279761==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="=-wr64C/rp0DSG8CLJNFAw"
--=-wr64C/rp0DSG8CLJNFAw
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Try this:
Look at my last example. Instead of calling create_principal, call the
chpass_principal method:
$success =3D $kadm5->chpass_principal($krb5_princ, $password);
You'll need to evaluate $success after the call. Again, search CPAN for
krb5:admin and you'll get plenty of examples.
Jason
On Mon, 2005-04-11 at 14:56 -0400, FM wrote:
> Hello,
>=20
> I'm not use to Object oriented programming.
>=20
> Do you have sample script that update principal using this perl package ?
>=20
> Thanks !
> ________________________________________________
> Kerberos mailing list Kerberos@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
--=20
Jason T Hardy
Enterprise Operations and Systems
Office of Information Technology
University of Texas at Arlington
GnuPG Public Key: http://omega.uta.edu/~jthardy/jthardy.gpg.asc
--=-wr64C/rp0DSG8CLJNFAw
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBCWtLMtNHMa49nCygRArJGAJ4oUGd/vCG2g2YG35yCWdmJWgvkygCdFYoG
U08p7rPjWZN3nv/TsHMTJQo=
=NVAj
-----END PGP SIGNATURE-----
--=-wr64C/rp0DSG8CLJNFAw--
--===============34085327102279761==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos
--===============34085327102279761==--