login about faq

Hi,

Some of our LDAP (Active Directory) users have extra character at the end of mobile field. We have over 2000 AD users and fixing each user's mobile number is not an option. Is there way to do it with MobileID server?

asked Dec 12 '11 at 16:29

anttisa's gravatar image

anttisa
106252627


Hi,

1) Create file /var/lib/mobileid/custom/parseMobile

# start
func EntryPoint

            -       VP-Create       LocalWLOGINSRV.IntmInt = { LDAP.mobile["end:2-1"] }
            if |(LocalWLOGINSRV.IntmInt < 48)(LocalWLOGINSRV.IntmInt > 57)
                    -       VP-Create       LocalWLOGINSRV.IntmInt = { LDAP.mobile["length:0"] }
                    -       VP-Create       LocalWLOGINSRV.IntmInt = "(LocalWLOGINSRV.IntmInt - 2)"
                    -       VP-Create       LDAP.mobile = { LDAP.mobile["front:0-LocalWLOGINSRV.IntmInt"] }

            endif

            -       VP-Create       LocalWLOGINSRV.IntmInt = { LDAP.mobile["end:1-1"] }
            if |(LocalWLOGINSRV.IntmInt < 48)(LocalWLOGINSRV.IntmInt > 57)

                    -       VP-Create       LocalWLOGINSRV.IntmInt = { LDAP.mobile["length:0"] }
                    -       VP-Create       LocalWLOGINSRV.IntmInt = "(LocalWLOGINSRV.IntmInt - 1)"
                    -       VP-Create       LDAP.mobile = { LDAP.mobile["front:0-LocalWLOGINSRV.IntmInt"] }
            endif

endfunc
# End

2) Navigate to Default Parameters -> System Parameters -> Custom Policies
Enable:

LDAP Policy File: /var/lib/mobileid/custom/parseMobile

=> and click save

3) Restart MobileID server from Web Access Home and last character is parsed from mobile field

link

answered Dec 12 '11 at 16:37

anttisa's gravatar image

anttisa
106252627

edited Dec 12 '11 at 16:56

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×55

Asked: Dec 12 '11 at 16:29

Seen: 2,837 times

Last updated: Dec 12 '11 at 16:56

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.