SRX Services Gateway
SRX Services Gateway

Source Identity - Erro Sintaxe

‎02-08-2019 03:04 AM


Hello people how are you

I'm in trouble, I think it's a SYNTAX problem.

When I type this part:
source-identity "example.net \ galenrikka";

He takes the space, and draws the backslash.

It is thus source-identity "example.net galenrikka";

Can someone help me ?

Here is the sample material:


https://www.juniper.net/documentation/en_US/junos12.1x47/topics/example/example-userfw-ad.html

From configuration mode, confirm your policy configuration by entering the show security policies command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

user@host# show security policies
from-zone trust to-zone untrust {
policy p1 {
match {
source-address any;
destination-address any;
application any;
source-identity unauthenticated-user;
}
then {
permit {
firewall-authentication {
user-firewall {
access-profile profile1;
}
}
}
}
}
policy p2 {
match {
source-address any;
destination-address any;
application any;
source-identity “example.net\galenrikka”;
}
then {
permit;
}
}
}
If you are done configuring the device, enter commit from configuration mode.

4 REPLIES 4
SRX Services Gateway

Re: Source Identity - Erro Sintaxe

‎02-08-2019 05:30 AM

Can someone help me?

SRX Services Gateway

Re: Source Identity - Erro Sintaxe

‎02-08-2019 06:08 AM

Hi,

 

Not sure if I understood it correctly but It looks like there is spece in while you are configuring it:

 

source-identity "example.net \ galenrikka"   , <-- there is a space here

 

  it should be source-identity "example.net\ galenrikka" 

 

 

 

 

Thanks,

Vikas

SRX Services Gateway

Re: Source Identity - Erro Sintaxe

‎04-19-2019 01:05 PM

Hi @Leetrix ,

 

Were you able to get your situation resolved? Did @vikassingh response help out?

 

Keep us posted Smiley Happy

Jeremiah
J-Net Community Manager
SRX Services Gateway
Solution
Accepted by topic author Leetrix
‎04-23-2019 04:50 AM

Re: Source Identity - Erro Sintaxe

‎04-21-2019 07:34 AM

Hello Leetrix,

 

If I understand your requirement, you want to have a source-identity with a space in the middle (Please correct me if misunderstood),

 

The way source-identity work is that "\" separates the domain and the username. 

 

E.g.

 

Case-1: - If Domain name is "example.com" and User name is "galenrikka" (No space in username)

 

set security policies from-zone tr to-zone tr policy abc match source-identity "example.com\galenrikka"

 

Case-2: - If Domain name is "example.com" and User name is "<space>galenrikka" (No space in username)

set security policies from-zone tr to-zone tr policy abc match source-identity "example.com\<space>galenrikka"

 

Thanks,

Nishant