SRX

Expand all | Collapse all

Source Identity - Erro Sintaxe

Jump to Best Answer
  • 1.  Source Identity - Erro Sintaxe

    Posted 02-08-2019 03:05


    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.


    #syntaxproblem


  • 2.  RE: Source Identity - Erro Sintaxe

    Posted 02-08-2019 05:30

    Can someone help me?



  • 3.  RE: Source Identity - Erro Sintaxe

    Posted 02-08-2019 06:08

    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



  • 4.  RE: Source Identity - Erro Sintaxe

    Posted 04-19-2019 13:06

    Hi @Leetrix ,

     

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

     

    Keep us posted 🙂



  • 5.  RE: Source Identity - Erro Sintaxe
    Best Answer

    Posted 04-21-2019 07:34

    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