We are facing a problem connecting WSO2-Identity Server 5.1.0 with multiples paths in Active Directory in a single userstore.
We have the following configuration in Active Directory:
|- DC=org
|- DC=company
|- DC=users
|- OU=Department1
|- CN=User1
|- CN=User2
|- OU=Department2
|- CN=User3
I have created an Active Directory based UserStore that gets the users from Department1 correctly (User1 and User2). Now I want to get also the users from Department2 without creating another UserStore.
I tried the following filter in "User Search Base" field without succees:
(&(OU=Department1)(OU=Department2)),DC=users,DC=company,DC=org
((|(OU=Department1)(OU=Department2)),DC=users,DC=company,DC=org)
(&(OU=Department1,DC=users,DC=company,DC=org) (OU=Department2,DC=users,DC=company,DC=org))
(|(OU=Department1,DC=users,DC=company,DC=org)(OU=Department2,DC=users,DC=company,DC=org))
OU=(&(Department1)(Department2)),DC=users,DC=company,DC=org
OU=Department1,DC=users,DC=company,DC=org;OU=Department2,DC=users,DC=company,DC=org
((OU=Department1,DC=users,DC=company,DC=org)(OU=Department2,DC=users,DC=company,DC=org))
Also I try to get all the user in "User Search Base" and make a filter for those users:
"User Search Base": DC=users,DC=company,DC=org
"User DN Pattern": (&(CN={0},OU=Department1,DC=users,DC=company,DC=org)(CN={0},OU=Department2,DC=users,DC=company,DC=org))(|(CN={0},OU=Department1,DC=users,DC=company,DC=org)(CN={0},OU=Department2,DC=users,DC=company,DC=org))CN={0},(|(OU=Department1)(OU=Department2)),DC=users,DC=company,DC=org
Is there any way to configure this properly without in just one single userStore?
Thanks!
Try a hash sign (#) as the separator.
ou=Department1,dc=users,dc=company,dc=org#ou=Department2,dc=users,dc=company,dc=org
Related
I´m in the middle of a content creation project for Salesforce/Veeva. I´ve created Key Messages according to the Veeva CLM Content Creation Guidelines zipped them and uploaded them using the salesforce.com backend into the sandbox.
The Key Messages get synced with the Veeva CRM App on my iPad, but there, the Key Message files are shown in the media overview with "Incorrect Packaging Structure".
I have used this directory structure
my_message_slide01/
Index.html
thumb.png
assets/
css/
img/
js/
resulting in my_message_slide01.zip. Error message "Incorrect Packaging Structure"
I also used these directory structures according to the Veeva CLM Content Creation Guidelines:
my_message_slide01/
my_message_slide01-full.jpg
my_message_slide01-thumb.jpg
my_message_slide01.html
assets/
css/
img/
js/
and
my_message_slide01/
my_message_slide01-full.jpg
my_message_slide01-thumb.jpg
my_message_slide01.html
css/
img/
js/
These also lead to the error message "Incorrect Packaging Structure"
Does anyone have an idea?
Thanks in advance
Tom
Follow the structure attached as image to upload in salseforce keymessage and key message name should be the same name CLM_Legacy_HTML.
zip_for_salseforce_upload
Problem solved. It seems, that there were initially not well-formed .zip-files that weren´t removed by updating from the salesforce.com backend. Re-building the local database in the Veeva CRM app solved the issue.
How to install app in a subdirectory of another app?
For example, if it is the main app folder structure:
/app/Config
/app/Controller
/app/Model
/app/webroot
...
I want to put the second app files in a directory named 'client', so new structure should be:
/app/Config
/app/Controller
/app/Model
/app/webroot
/app/client/Model
/app/client/webroot
...
and if first app url is http://example.com, the second one should be http://example.com/client
I tried putting some files in client folder, but cake thinks its one of its controllers and try to find its action. (so 404 error occurred)
You can fix this problem in your default CakePHP installation.
You can use a 'client' prefix and in the your default controller you can add the method 'client_index'
Look here:
http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing
So my directory structure looks something like this:
\Project-Dir\
|- lib\
| |- flask\
| |- ...
|- module1_dir\
| |- __init__.py
| |- app.yaml
| |- app.py
| |- ...
|- module2_dir\
| |- __init__.py
| |- app.yaml
| |- app.py
| |- ...
|- ...
Inside app.py
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../lib')))
I have two modules inside the same root directory. They are both deployed to App Engine together. They also share the same libraries. The libraries are all pretty beefy so I'm trying to place them in a shared directory (lib).
I'm running dev_appserver.py from \Project-Dir\ and passing the two .yamls. My sys.path is set up fine to include the lib\ directory. And yet the sandbox seems to stubbornly insist that the libraries in lib\ just don't exist.
I'm sure I'm just missing something small like a config change somewhere. Or does App Engine really just flat-out not support such a setup?
EDIT: The imports work fine when I run it outside of dev_appserver.py.
I spoke to a Google support engineer, after facing the same problem. Unfortunately, GAE does not support this kind of setup.
When you use the Modules API, module 1 and module 2 run inside separate Python virtual environments as separate self-contained instances. They cannot 'see' the contents of their parent directory. Modifying sys.path doesn't make a difference.
There are two solutions:
(a) Duplicate your 'lib' folder by placing it inside both 'module1_dir' and 'module2_dir'.
(b) Place the module files directly in the root directory.
I've read some old questions from this stack about separate sites for mobile & desktop app like this, but it's about suggested technology. Like this it's "almost" same question but no answers and still different. And this question really useful for me, and etc. But I want to ask a bit different question about separate sites for mobile and desktop app.
Here's my problem :
1. As #Juned-ahsan answer, it's about looks and contents to be displayed. So, I think i can create separate sites for mobile and desktop app using one MVC structure for both. Can I ?
This is my MVC structure for development :
htdocs/myapp
|- application //This's my CI MVC
|- controllers
|- models
|- views
|- v_desktop.php // View for DESKTOP extjs4
|- v_login.php // View for Login Page
|- v_mobile.php // View for MOBILE touch2
|- ext //This's my Extjs 4.2 src
|- touch //This's my Sencha touch 2 src
|- extapp //This's my Extjs MVC
|- app
|- controller
|- model
|- store
|- view
|- applogin //
|- controller
|- view
|- applogin.js
|- app.js
|- touapp //This's my touch MVC
|- controller
|- model
|- profile
|- store
|- view
|- app.js
|- system //This's my CI MVC
|- temp
How to load dynamically mobile & desktop sites from one page ? My current solution is using user_agents to detect the browsers and one page for each mobile & desktop just like my structure tell. May be somebody have another trick to load mobile & desktop app just using one page ?
I think about a tricky way just like how to dynamically change a themes between neptune, classic, etc in Extjs like This, for the dynamically load a mobile or desktop web app.
Please suggest how can I achieve that, or any other way to do that ?
How do I set AllowOverride on NearlyFreeSpeech.net? I'm trying to follow the instructions at Within cakePHP, In my routes.php only the '/' (base path) works. Any other url is 404 page not found to resolve the problems described therein.
So far, I've had to do the following when moving out of a WAMP development environment:
Refer to controller names by their correct case
Change the name of the server in the configuration file
Add all the CakePHP-related files to the web group
The solution is as follows:
Copy the files over from your working environment (or do an export from your source control tool) into a new folder on NearlyFreeSpeech.net (NFS.net). Let's call the new folder "abc".
Import your database into NFS.net.
Configure database settings as necessary on the NFS.net version of the site.
Add the abc folder and everything in it to the web group.
Go into the .htaccess file in /home/public/abc and add "RewriteBase /abc" under "RewriteEngine on".
Add "RewriteBase /abc/app" to the .htaccess in /home/public/abc/app and add "RewriteBase /abc/app/webroot" to the one in /home/public/abc/app/webroot.