Will them back in this lesson we can learn about models.
So what is model stands for pluggable indication more than it is a security framework or you can call
it as group of models or library of models which are used to perform authentication of related activities.
There are different types of more than sodded and each module is having its own function.
Ok so what activities he performs.
For example when we enter our username and password then it can be used to validate our username and
password.
Or suppose there is an account which has some restrictions some restrictions for particular resource.
Then bam more dues can help.
Validating for that account whether that account is allowed or not to how access to that particular
resource in that in existence.
All these kinds of activities can be performed here with the help of families.
When logging into a Linux system then that validation procedure is also done with the help of more.
So get this Linux system uses more use for validation purposes or authentication purposes.
There are a number of applications there which use this model for performing Atlantic occasional activities.
You can just go directly to DC Bandar the OK.
And inside that directory you can see a list of configuration files all this configuration files regarding
all that allocations which uses them for authentication purpose.
OK.
So here I would like to issue your basic syntax that uses them.
OK.
Or we can use this basic syntax in those configuration files to perform this authentication deliberate
activities.
OK.
So let's see here.
The first thing that we need to set this type of activity.
Then we need to set control flag then model name or part.
OK.
Everything is dependent on this model name.
OK.
Because moralise having our mobile contains its own function and those functions can be controlled with
the help of activity and control flag.
OK.
And the last experimenter's we can set a pedometer OK for the model or we can pass the promoters to
the model but it is not compulsory that every model should have a pedometer.
OK.
There are different models which do not contain any paramita.
OK.
So this is the basic syntax.
So let's see here the type of activities are there or which type of activities are present here.
The first activities are the function of these activities to perform authentication activity like validating
username and password to get the next activities occurring.
The function of this activity is to perform the validation for an account validation of an account like
whether that account is allowed or not during a particular time period or that account is expired or
valid for log in or not.
OK.
Kinds of activities can be performed here with the help of this new world.
Or you can call it an activity the next activities password.
The function of this activity is to update the user credentials like you suppose the user trying to
update is password then this activity is OK for that application to perform this activity.
The activity of changing the password and the last one is session.
The function of these activities establish a particular session for the user to get are different types
of sessions there.
So this can be used in setting up a particular session for the user.
So of connectivity I want to show here control lacks.
So there are different types of control locks out there.
The first one is a method when the signal flag is set.
Then what happens is if the if this condition become false.
OK.
So what they were configuration you set here for authentication.
And if that gate falls then what happens is the below what there were configuration or whatever activities
are present below this activity are not good quality.
OK.
All those activities gatekeeper and it returns false result are filled result.
Good application.
To the application which uses our authentication mechanism.
OK the next flag is required required.
What happens is set in the control flag required.
And if that condition becomes false then the next use the teacher present.
Below this model get cholera but at the last what happens is it goes to fill the reserved Godet application.
OK.
In the site the models are not good.
OK but in required the further more dues are get called or the next flag is sufficient.
And then it is called a sufficient flag.
Then what happens is it gives a pass result to the application.
And furthermore these are called.
And the next one is optional.
This optional activity has nothing to do with pass fail.
Razored get it.
That is exactly the model and gives the result to that location and the next flag is include the use
of the include flag is to include external configuration files in the current configuration file.
And they are but there are different types of multi-sided there.
OK.
And each model is having its own function.
Ok so it is not possible to get information about all the models which are present there.
So here I want to show you one more Bamm underscored in my not so OK repair model contains an extension
not so so to this model what happens is when you enter a wrong username and password then this modalist
get called there and you will get incorrect logging error message.
OK.
And the last one is paramita So it is not mandatory or compulsory that every model should how experimentor.
OK so it depends on that model.
So if you want to know what can be Pasquier model you can just open that configuration file.
OK well more information is present there inside that configuration file.
So you can read that and you can set those models according to that information or you can search online
about it.
OK.
So after learning all these things I would like to show you something practically.
Hold the settings can be done in those configuration files.
So first of all let's get inside with the band of the year you can see.
These are the lips of all the configuration files.
OK.
For all those application which uses them for authentication purposes.
OK.
Here you can see loggin is present past the blue D or Sudol.
OK.
When we try to execute one of these commands.
OK then those come once goes through the palm.
So here let me show you the example of switch users so let's open it.
Why did the switch user.
OK.
Here you can see the whole just talk about all these things here.
Here in this green color you can see all of these for performing authentication related activity.
And here the flag is set here sufficient and the maudit Parsley's Pam underscore Roop.
OK.
So so what happens.
Dooku this line Boku this line even the root user is trying to log in to any account other than Roop
then he can get into that account without entering possible.
OK here you can see you can't really hear.
This allows the root user who is you without password.
OK so in this way you can learn about each Mordieu and its function.
OK.
So let's understand here.
OK.
Now the root user.
OK.
So let's try to Suchi that to on.
OK you can see here the entering password i have locked in here has Prashad.
OK.
So let's exit and then open the file.
As you will get a list coming out this line.
OK.
And after commending the line let's see what type of recusal result.
And now here you can see when I'm trying to log into Prashanth from root user Nobody is asking me for
the password because we have commented that line which was loving me OK.
Without entering the password.
So in this settings can be done in the configuration file.
OK let's do another setting.
OK here we have just come and get this line.
OK.
Now push on impressionist trying to be sure to use that.
It asks for the password.
What if I want any user to become Rukun without entering the password.
OK so far that this type of
stuff is here.
And for me not so pamper me.
So he's a model which is used to allow access to an account.
And we our past here sufficient to not sufficient.
OK.
Just look at this data.
Let's see what happens which is question.
Now here you can see I logged in as patient and just try to become from oppression.
And here you can see the gotan the password for the root user become Rukeyser.
OK.
So all this happened is due to that one line of code.
Let's try another thing.
Open the file switch user.
OK.
Comes in this line.
OK now I want to prevent all users from using the SU.
That is that.
Come on.
So what you need to be is like ought we sit and call deny darkness or they just I don't it clear this
sick user pressure.
It's just a complication failure switches authentication failure.
All this happening because of that line of configuration that we have done.
OK.
So in this.
Consecrations can be done in this configuration files.
Ok this is how model.
Actually them is very difficult to understand at the beginning.
But when you practice this or when you study about each model it's working.
So study I would hold the flag words or hold that activity's works good then you will automatically
understand how to use this Modu.
OK.
In configuring the system.