px998866
Dołączył: 29 Lip 2010
Posty: 213
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: rbuccu
|
Wysłany: Nie 23:00, 03 Kwi 2011 Temat postu: Account in the remote management of Java applicati |
|
|
Account in the remote management of Java applications
); /-K to delete off server connections -k/4.2 checking account with the account password is correct : StringENTRYDN = uid = + uidstr +, O = dgitedu, e = CN; / ★ specify a dn ★ / LDAPAttributeattr = newLDAPAttribute ( mobile, passstr); / ★ define a contrast property -k/booleanok = ld. compare (ENTRYDN,[link widoczny dla zalogowanych], attr); / ★ and data in the database are compared , if the same return tree, otherwise returns false ★ / account number or password error when processing LDAPExceptione /-k account the wrong time , LDAPExeeption 's on like e will deal with sub- manager Exception. Delete Account : ld. delete (ENTRYDN); /-k to delete accounts , ENTRYDN is to delete the item dn. ★ / T - _ ■ ■ ■ ■-ll of a strong alliance Ⅲ ¨ _ beetle plastic heavy! barriers obstruct Fort Hall Fort amount of ink falling into the main alliance to change the password once 4.3 is considered a new password : rnewlnpass. equa] s (newmpass) /-k with String of equ ~ s () method to compare the two rnewmpass and newmpass string variable are the same. -k / check user password is correct : StringENTRYDN = uid = + uidstr +, 0 = dgit. edu, C = CN; LDAPAttributeattr = newLDAPAttribute (mobile, passstr): booleanok = ld. compare (ENTRYDN, attr); new password will replace the old password : LDAPModificationSetmods = newLDAPModifieationSet () /-k to create a modified set (mods) -k/LDAPAttributeattrPasswd = newLDAPAttribute (userPassword, mnewpass); /-k to create the items need to be modified A new property -k/mods. add (LDAPModifieation.REPLACE, attrPasswd); /-k to change the settings to increase the specified property -k/StringENTRYDN = uid = + muid +, O = dgit. edu, C = CN; /-k specify the need to modify the item dn-k/ld. modify (ENTRYDN, mods); /-k options to modify the userpassword attribute specifies the value of ★ / 4 Conclusion realize remote management on the one hand account can reduce the direct operation of the user on the server , thereby reducing the server's misuse ; on the other hand Improve the confidentiality of the user's password , the user can always change your password online . But also to set the password according to their own requirements , user memory.
Post został pochwalony 0 razy
|
|