In older Versions of Sametime one could add the attribute "uid" to the authentication parameters by simply adding it to LDAPServer configuration to "Search filter to use when resolving a user name to a distinguished name" field in stconfig.nsf.
In websphere based versions with Sametime console you could add the uid attribute to the "authentication attributes" (German screenshot below):
You can override the default setting by copying the file out of the container, then modify it, then you can copy it back in. The steps for this are in this other help topic, which outlines how to get a file in and out of the container on Docker. You can ignore steps 6-8.
Thank you very much for the name of this variable.
Would be very cool if all possible variables could be added to documentation, so that when I google "Sametime LDAP_PERSON_RESOLVE_FILTER_ENV" then I could automatically find this option as well.
Just for my understanding: Is it correct, that StCommunityConfig.xml within the container is built automatically from the input in custom.env?
That would mean that I would lose all customizations from custom.env regarding that file if I would follow the advice of Casey as the file would be overwritten by the volume after it had been generated from custom.env?
There is a documentation task to get these documented.
You are correct that over-riding it with the volume takes precedence over anything you might add to custom.env (pertaining to StCommunityConfig.xml). Keep in mind that the values in custom.env also apply to UserInfoConfig.xml as well.
Thank you very much for confirming. I would really love to get a complete list of parameters as I also have customizations in UserInfoConfig.xml that I currently assign using the volume approach and I'd really like to do this all with "default configuration" instead of editing XML files.
If you shell into the Community container - you can "cat" the ststart file - its job, among other things, is to read the various environment variables and pushing them into the configuration file(s).
You see output of this at the top of the community log telling you what is/isn't set.
if [[ ! -v USER_INFO_PHOTO_ATTR ]]; then
echo "USER_INFO_PHOTO_ATTR is NOT set"
elif [[ ! -z "{$USER_INFO_PHOTO_ATTR}" ]]; then
if [[ ! -v USER_INFO_PHOTO_ATTR_SEPARATOR ]]; then
echo "USER_INFO_PHOTO_ATTR_SEPARATOR is NOT set"
sed -i '/<Detail.* Id="Photo".*FieldName=/s/FieldName="[^"]*"/FieldName="'"$USER_INFO_PHOTO_ATTR"'"/' /local/notesdata/UserInfoConfig.xml
elif [[ ! -z "{$USER_INFO_PHOTO_ATTR_SEPARATOR}" ]]; then
echo " USER_INFO_PHOTO_ATTR_SEPARATOR[${USER_INFO_PHOTO_ATTR_SEPARATOR}] "
sed -i 'FILL IN THE RIGHT REGEX HERE ;)' /local/notesdata/UserInfoConfig.xml
fi
fi