el 04-13-2023 01:36 AM
Hi all,
I´m trying to get a configuration in order to create a local user in the switch with secret 8 password and belonging to a common-criteria policy in order to have a complex password, but i have not achieve it.
first i have created CC policy with some threshold
aaa common-criteria policy TEST
second, i have enable algoritm-type
enable algorithm-type sha256 secret peloto123
finally, i have tried creating user but i can´t combine common-criteria policy with secret 8 password for the user, becuase if i type common-criteria option, i can only include password option, and if it type secret 8 password i can´t include common-criteria option.
Do you know if this configuration is compatible or it depends on IOS version?, in my case 15.2
thanks
andres
¡Resuelto! Ir a solución.
el 04-13-2023 01:55 AM
username username common-criteria-policy AAA-CC algorithm-type md5 | scrypt | sha256 secret cleartext-secret <<- check this
el 04-13-2023 11:38 AM
Below is an example of how to create a policy. These are already applied to the users.
Device(config)# aaa new-model
Device(config)# aaa common-criteria policy policy1
Device(config-cc-policy)# upper-case 1
Device(config-cc-policy)# max-length 20
Device(config-cc-policy)# min-length 6
Device(config-cc-policy)# numeric-count 1
Device(config-cc-policy)# exit
Device(config)# username user1 common-criteria-policy policy1 algorithm-type sha25 secret Password1
I share the official guide of cisco
**Please rate the answer if this information was useful***
el 04-13-2023 01:55 AM
username username common-criteria-policy AAA-CC algorithm-type md5 | scrypt | sha256 secret cleartext-secret <<- check this
el 04-13-2023 11:38 AM
Below is an example of how to create a policy. These are already applied to the users.
Device(config)# aaa new-model
Device(config)# aaa common-criteria policy policy1
Device(config-cc-policy)# upper-case 1
Device(config-cc-policy)# max-length 20
Device(config-cc-policy)# min-length 6
Device(config-cc-policy)# numeric-count 1
Device(config-cc-policy)# exit
Device(config)# username user1 common-criteria-policy policy1 algorithm-type sha25 secret Password1
I share the official guide of cisco
**Please rate the answer if this information was useful***
08-08-2023 04:58 PM - editado 08-08-2023 05:01 PM
What the OP was trying to say was that they can pick either "algorithm-type" or "common-criteria-policy" for IOS 15.2, they are mutually exclusive. If you choose "common-criteria-policy", and without the ability to then use the command for algorithm-type, it will give you a type 9 password generated by scrypt and not a type 8 generated by sha256. If you chose to use "algorithm-type" you can not use the common-criteria-policy you created but it will be a type 8 password.
He was discovering that you can have one or the other but not both on 15.2 (like on a 2960X or 3560CX).
I don't know if it's a bug or it was meant to be that way, but it's been that way for at least 7 years, I just found his post while looking to see if someone has answered which yet, guess I'll try back in another 7.
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros
Navegue y encuentre contenido personalizado de la comunidad