website/integrations: snipe-it: remove ldap property mapping (#12688)
* Remove property mapping from snipe-it https://github.com/goauthentik/authentik/issues/7058 Property mapping for ldap outpost is not supported at the moment. I removed it, because it creates too much confusion. Signed-off-by: RogueThorn <DunklerPhoenix@users.noreply.github.com> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: RogueThorn <DunklerPhoenix@users.noreply.github.com> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -113,42 +113,9 @@ You must sync your LDAP database with Snipe-IT. Go to People on the sidebar menu
 | 
			
		||||
- Select your Location
 | 
			
		||||
- Click Synchronize
 | 
			
		||||
  :::note
 | 
			
		||||
  Snipe-IT will only import users with both a first and last name set. If you do not have first and last names stored in your users attributes, you can create a property mapping to set first and last name.
 | 
			
		||||
  Snipe-IT will only import users with both a first and last name set. You need to create user attributes with first and last names.
 | 
			
		||||
  :::
 | 
			
		||||
 | 
			
		||||
## authentik Property Mapping
 | 
			
		||||
 | 
			
		||||
To create a policy mapping, go to _Customization/Property Mappings_, click `Create` then `LDAP Property Mapping`. Name is 'sn' and set Object field to sn:
 | 
			
		||||
 | 
			
		||||
```ini
 | 
			
		||||
def getLastName():
 | 
			
		||||
    if len(request.user.name) >= 1:
 | 
			
		||||
     return request.user.name.split(" ")[1]
 | 
			
		||||
    elif len(request.user.name) == 1:
 | 
			
		||||
     return request.user.name.split(" ")[1]
 | 
			
		||||
    else:
 | 
			
		||||
      return ""
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
    "sn": getLastName(),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Create a second policy mapping, name it 'givenname' and set Object field to 'givenname'
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
def getFirstName():
 | 
			
		||||
    if len(request.user.name) >= 1:
 | 
			
		||||
     return request.user.name.split(" ")[0]
 | 
			
		||||
    else:
 | 
			
		||||
      return f"N/A"
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
    "givenname": getFirstName(),
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## authentik SAML Config
 | 
			
		||||
 | 
			
		||||
### Step 1
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user